Boost logo

Boost-Build :

From: Jonas Persson (l.j.persson_at_[hidden])
Date: 2006-05-10 17:04:54


Hi,
im trying to build my project with boost.build, but I can't get the
linking to work with msvc-7.1. Compiling the same project with gcc works
fine.

Jamfile:
exe SimTestCli
     : cli/SimTestCli.cpp /boost//program_options/<link>static
     ;

bjam SimTestCli msvc-7.1:

...
msvc.compile.c++
c:\Jonas\dev\cvs\boost\bin.v2\libs\program_options\build\msvc-7.1\debug\link-static\winmain.obj
winmain.cpp
msvc.archive
c:\Jonas\dev\cvs\boost\bin.v2\libs\program_options\build\msvc-7.1\debug\link-static\boost_program_options-vc71-gd-1_34.lib
msvc.link bin\msvc-7.1\debug\SimTestCli.exe
LINK : fatal error LNK1104: cannot open file
'libboost_program_options-vc71-mt-gd-1_34.lib'
...updated 13 targets...

Here I see that the name of the lib file differ, so I set multi threading:

exe SimTestCli
     : cli/SimTestCli.cpp /boost//program_options/<link>static
     : <threading>multi
     ;

msvc.compile.c++
c:\Jonas\dev\cvs\boost\bin.v2\libs\program_options\build\msvc-7.1\debug\link-static\threading-multi\winmain.obj
winmain.cpp
msvc.archive
c:\Jonas\dev\cvs\boost\bin.v2\libs\program_options\build\msvc-7.1\debug\link-static\threading-multi\boost_program_options-vc71-mt-gd-1_34.lib
msvc.link bin\msvc-7.1\debug\threading-multi\SimTestCli.exe
LINK : fatal error LNK1104: cannot open file
'libboost_program_options-vc71-mt-gd-1_34.lib'
...updated 13 targets...

now the names is identical except for the libboost_ vs boost_ beginning,
but it still does not work.
What do I do wrong?

     / Jonas


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk