You need to add to your IDE envir. the equivalent of the environment variable: BOOST_ROOT=C:\Boost\include\boost-1_32 I'm not familar with msvc 7.1, but in msvc 6.0 there were two ways to accomplish this. One has project specific, saved in the *.dsp. The other affected all projects. Its never a good idea to place the entire path for an include file in your cpp file. It produces non-mantainable code. I'm not suprised it doesn't work. Be aware that there may be a difference between system 'include <>' and local 'include ""' include files. MSVC 6.0 didn't differenciate, but it should have. Maybe MSVC 7.1 fixes this... In jam, you have <sysinclude> and <include> requirements that handle this. Frank Brown wrote:
sorry if this has been asked before, it's very elementary but i can't find references in the archives or faq so here goes:
i just installed boost libraries and built them via bjam. they seemed to build successfully. i'm using the vc7.1 compiler. when i try to compile (cl) a .cpp file containing the following include
#include
i get the following:
testBoost.cpp(8) : fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory
if i replace the include with the actual file spec like this:
#include "C:\Boost\include\boost-1_32\boost\regex.hpp"
i get the following compiler error:
testboost.cpp C:\Boost\include\boost-1_32\boost\regex.hpp(28) : fatal error C1083: Cannot open include file: 'boost/regex/config.hpp': No such file or directory
apparently the compiler (cl) isn't translating <boost>. since one boost header refers to others i need to fix this basic problem.
i tried substituting the bjam.exe in place of cl to compile, then i get a different error:
Unable to load Boost.Build: could not find "boost-build.jam" --------------------------------------------------------------- Attempted search from D:\c\whereis up to the root
so i'm sorry to bother y'all with such a simple problem, all i need to know is how to compile (the 'hello world' scenario). thanks for your attention.
-frank brown (stupid jerk) http://www.inwa.net/~frog