Re: Problem to use boost

"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.
Ok, I compile like this: bjam "-sTOOLS=vc7.1" "--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\bor land.hpp(1
3) : fatal error C1017: invalid integer constant expression
What have I missed?
I do the same as before and get the same error. And yes, I am using Visual Studio 7.1 in case anyone thought else. What am I doing wrong? -- Daniel

I do the same as before and get the same error. And yes, I am using Visual Studio 7.1 in case anyone thought else. What am I doing wrong?
No idea, but you can only get the error you are seeing if __BORLANDC__ is defined, and it clearly should not be if you are using Visual C++. John.
participants (2)
-
Daniel Lidström
-
John Maddock