Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9029781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:19:40+00:00 2026-06-16T07:19:40+00:00

here comes a short story These days I tried to trace the compile process

  • 0

here comes a short story

These days I tried to trace the compile process of the Makefile. According to the EDK override mechanism, a component while be compiled by using the source code of the same name under the override path and the remaining under the component’s directory.

Assume that there have two header file of same name, the directory path as following:

component directory – D:\outside\inner\hello.h
override directory – D:\outside\inner\overrides\hello.h

So, D:\outside\inner\overrides is used during compiling.

But, here comes a question!

It’s known that we could add the macro in the Makefile to indicate the include paths.
For instance:

INC = -I D:\outside\inner

then I added another include path like:

INC = $(INC) -I D:\outside\inner\overrides

If I set the command in the Makefile like:

hello : hello.c hello.h
<Tab>gcc -c hello hello.c $(INC)

Will the compiler still take the hello.h file under the override path?
Or will it just takes the first found file through the INC path(component path)?

Thanks for answering.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:19:42+00:00Added an answer on June 16, 2026 at 7:19 am

    gcc will use the first header it finds in the include paths. You can double check this my intentionally making a syntax error in one of the header files and looking for an error message. Or put this in overrides header:

     #warning "using overrides header"
    

    and look for a warning message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To make a short story long, I'm in charge of fixing all these CSS
Here comes a simple question, for all those who know javascript. I made an
As I don't want to hijack another thread here comes my question about mappings.
I'm new at Eclipse and the Android applications making so here comes a very
I've harnessed a project released on internet a long time ago. Here comes the
Something like this: _declspec(align(16)) float dens[4]; //Here the code comes. F32vec4 S_START, Pos, _Vector
Here's a question that comes up again and again in C++ class implementation. I'm
Here's the issue: When a Patient comes into the doctor's office, they can have
First timer here, and total noob when it comes to PHP and JavaScript. I
I am trying to understand this inline assembly code which comes from _hypercall0 here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.