cannot build the regex example in visual c++ 2008
Hello- absolute beginner here. I have the latest (November version) of visual studio c++ 2008 express. The header only version compiled fine. However the regex example fails with many unresolved external symbols. Do I need to build the libraries for this compiler? Or am I making some other booboo. I have had a go - following the instructions but so far without success. Grateful for any help. Chris Briscoe
chris briscoe wrote:
Hello- absolute beginner here. I have the latest (November version) of visual studio c++ 2008 express.
The header only version compiled fine. However the regex example fails with many unresolved external symbols.
Do I need to build the libraries for this compiler? Or am I making some other booboo.
Yes you need to build the libraries for this compiler: see http://www.boost.org/more/getting_started/windows.html There aren't any pre-built binaries for VC2008 yet, but you should be able to build from source OK. Also note that since VC2008 wasn't available when Boost-1.34 was released, you will need to modify your user-config.jam to tell bjam where to look for it, basically: copy boost-root/tools/build/v2/user-config.jam to %HOMEDRIVE%%HOMEPATH% or %HOME% (echo these from the command prompt to check where these locations are), and then add the line: using msvc : 9.0 : "c:/program files/microsoft visual studio 9.0/vc/bin/cl.exe" ; adjusting the path as necessary, then you should be able to build from Boost's root directory with: bjam --with-regex stage msvc-9.0 Afterwards make sure the binaries are in your project's library-search-path and hopefully everything should just work :-) HTH, John.
Hi,
thanks very much for responding.
I have followed your instructions but so far can't get it to work.
running bjam as below gives a message:
msvc:9.0:C:/microsoft..../bin/cl.exe.jam: Invalid argument
and :
rule msvc:9.0:c:/micro..../cl.exe.init unknown in module toolset
then appears to drop through with a number of in (various modules)
messages.
Would greatly appreciate your help.
Thanks
Chris
----- Original Message -----
From: "John Maddock"
chris briscoe wrote:
Hello- absolute beginner here. I have the latest (November version) of visual studio c++ 2008 express.
The header only version compiled fine. However the regex example fails with many unresolved external symbols.
Do I need to build the libraries for this compiler? Or am I making some other booboo.
Yes you need to build the libraries for this compiler: see http://www.boost.org/more/getting_started/windows.html
There aren't any pre-built binaries for VC2008 yet, but you should be able to build from source OK. Also note that since VC2008 wasn't available when Boost-1.34 was released, you will need to modify your user-config.jam to tell bjam where to look for it, basically:
copy boost-root/tools/build/v2/user-config.jam to %HOMEDRIVE%%HOMEPATH% or %HOME% (echo these from the command prompt to check where these locations are),
and then add the line:
using msvc : 9.0 : "c:/program files/microsoft visual studio 9.0/vc/bin/cl.exe" ;
adjusting the path as necessary, then you should be able to build from Boost's root directory with:
bjam --with-regex stage msvc-9.0
Afterwards make sure the binaries are in your project's library-search-path and hopefully everything should just work :-)
HTH, John.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
chris briscoe wrote:
Hi, thanks very much for responding. I have followed your instructions but so far can't get it to work.
running bjam as below gives a message: msvc:9.0:C:/microsoft..../bin/cl.exe.jam: Invalid argument and : rule msvc:9.0:c:/micro..../cl.exe.init unknown in module toolset then appears to drop through with a number of in (various modules) messages.
Would greatly appreciate your help.
Please post the complete error messages, plus your user-config.jam changes, otherwise it's hard to say. However... at a guess it appears that there isn't any whitespace between the arguments in your user-config.jam. Unfortunately bjam insists on whitespace around separators like ":" so: using msvc :9.0:path-to-cl; will *not* work, but: using msvc : 9.0 : path-to-cl ; will. HTH, John.
Hi, whitespace was an issue - thanks.
using this command: bjam --with-regex stage msvc-9.0 didn't work, produced
a lot of output
then appeared to skip everything for lack of stage\lib.
I tried this from the boost root
C:\Program Files\boost\boost_1_34_1> bjam ^
More? --build-dir=C:\temp\build-boost ^
More? --toolset=msvc-9.0 stage
this ground away for an age producing reams of output and finished with the
result attached.
Still don't seem to be there.
Thanks
Chris
----- Original Message -----
From: "John Maddock"
chris briscoe wrote:
Hi, thanks very much for responding. I have followed your instructions but so far can't get it to work.
running bjam as below gives a message: msvc:9.0:C:/microsoft..../bin/cl.exe.jam: Invalid argument and : rule msvc:9.0:c:/micro..../cl.exe.init unknown in module toolset then appears to drop through with a number of in (various modules) messages.
Would greatly appreciate your help.
Please post the complete error messages, plus your user-config.jam changes, otherwise it's hard to say. However... at a guess it appears that there isn't any whitespace between the arguments in your user-config.jam. Unfortunately bjam insists on whitespace around separators like ":" so:
using msvc :9.0:path-to-cl;
will *not* work, but:
using msvc : 9.0 : path-to-cl ;
will.
HTH, John.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
chris briscoe wrote:
Hi, whitespace was an issue - thanks.
using this command: bjam --with-regex stage msvc-9.0 didn't work, produced a lot of output then appeared to skip everything for lack of stage\lib.
I tried this from the boost root
C:\Program Files\boost\boost_1_34_1> bjam ^ More? --build-dir=C:\temp\build-boost ^ More? --toolset=msvc-9.0 stage
this ground away for an age producing reams of output and finished with the result attached.
Still don't seem to be there.
Seems to be the same problem in both cases: for some reason it can't produce the directory stage/lib. Either manually create the directory that bjam couldn't create or fix the issue: is the disk full, or read only or...? If you can't see an obvious cause please post the *complete* output from: bjam --with-regex stage msvc-9.0 HTH, John.
participants (2)
-
chris briscoe
-
John Maddock