In CINCLUDE path in my make file there are two headers with same name.
I cannot remove one of them . How can I instruct makefile to give priority to header files in a specific folder.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
This is usually something specified by the compiler. For example with gcc, you can create the following files:
Then, when you compile them:
In other words, it’s the order in which the include paths are specified (with
-I) which dictates the order of search (there are other things such as whether headers are named the same as system headers but they need not concern us here).