C++ – fatal error C1083: Cannot open include file: ‘boost/config.hpp’: No such file or directory

boostcinclude

I think I did all the necessary configuration but I am still getting this:

Error 1 fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory    File:c:\documents and settings\administrator\my documents\visual studio 2008\libs\boost_1_43_0\boost\smart_ptr\shared_ptr.hpp Line:17

Here are screenshots of setting I have done to add directories for include and lib files :

1

2

3

Am I missing something ?

Best Answer

I finally found the answer :) and I will write it here to help.

Project>"YOURPROJECT" Properties>C/C++>General>Additional Include Directories then select where you downloaded your library . This worked and all the above didn't, so make sure not to forget it .

Related Topic