-
November 19th, 2012, 04:59 PM
#1
Additional Include and Library directories
For each project in a VS solution it's possible to stipulate per-project folders that get searched in addition to the folders that you've set globally for Visual Studio.
Which folders take priority? Do the project's folders get searched first? Or do the global folder get searched first? Or is it possible to select one set as having priority over the other?
(this is VS 2005 BTW)
"A problem well stated is a problem half solved.” - Charles F. Kettering
-
November 20th, 2012, 03:10 AM
#2
Re: Additional Include and Library directories
Best regards,
Igor
-
November 21st, 2012, 11:36 AM
#3
Re: Additional Include and Library directories
Thanks Igor but that link only explains 3/4 of the problem
AFAICT there are 4 locations where the compiler (or linker) searches in:-
1) The same directory as the source file.
2) Any folders saved in the project's settings (or more correctly, in the current target's settings).
3) Any folders stipulated in the INCLUDE (or LIBPATH) environment var.
4) Any of Visual Studio's 'global' folders (Tools->Options->Projects and Solutions->VC++ Directories).
After reading that article I understand the ordering between the first three - but I still don't know where item 4 fits into the equation. It's not vitally important... I'm just curious.
"A problem well stated is a problem half solved.” - Charles F. Kettering
-
November 21st, 2012, 11:43 AM
#4
Re: Additional Include and Library directories
Seems like something you could figure out. Create a header file that compiles and one that doesn't. By moving them around to different directories and seeing which one the compiler chooses, you should be able to get an idea of the order it's looking in the directories.
-
November 21st, 2012, 12:57 PM
#5
Re: Additional Include and Library directories
Originally Posted by John E
4) Any of Visual Studio's 'global' folders (Tools->Options->Projects and Solutions->VC++ Directories).
After reading that article I understand the ordering between the first three - but I still don't know where item 4 fits into the equation. It's not vitally important... I'm just curious.
Seems like DEVENV uses its own environment, _ACP_INCLUDE, that stands for classical INCLUDE, and exactly contains the VC++ Directories list.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|