Problem to use boost

Hi, this is what I've done: compiled with commandline of bjam "-sVC71_ROOT=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7" "--prefix=C:\projects\boost" install Within my project, I've set an additional include path of C:\projects\boost\include\boost-1_31. Now when I compile my project with one source file containing the line #include <boost/shared_ptr.hpp> I get this error: c:\projects\boost\include\boost-1_31\boost\config\compiler\borland.hpp(1 3) : fatal error C1017: invalid integer constant expression What have I missed? -- Daniel

"Daniel Lidström" <daniel.lidstrom@sbg.se> wrote in message news:E1F34343C3A0804BB3E29ABBFCBBAF0C01BB6F@ADA...
Hi,
this is what I've done: compiled with commandline of bjam "-sVC71_ROOT=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7" "--prefix=C:\projects\boost" install
I don't see an -sTOOLS=vc7.1 here telling bjam which tool set to use, as the Getting Started page suggests. I'd guess this is confusing things. Given you are using the default root for vc7.1 try: bjam -sTOOLS=vc7.1 "--prefix=C:\projects\boost" install note that vc7.1 is case sensitive.
Within my project, I've set an additional include path of C:\projects\boost\include\boost-1_31. Now when I compile my project with
one source file containing the line
#include <boost/shared_ptr.hpp>
I get this error:
c:\projects\boost\include\boost-1_31\boost\config\compiler\borland.hpp(1 3) : fatal error C1017: invalid integer constant expression
What have I missed?
see above Jeff F
participants (2)
-
Daniel Lidström
-
Jeff Flinn