How can I specify where MSVC searches for include files? I want to add the boost headers to the search path. I am not using a Visual Studio project, just the compiler.
Share
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.
You need to edit them into %INCLUDE% environment variable. You can find this via the System Properties property pages, e.g.
sysdm.cpland then Advanced, Environment Variables.
The VS command prompt also adds its own; you could modify its batch file too to add your extras in. You’ll find that at
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat.(I’d already started typing about the IDE before you edited the question. Details here)