Boost logo

Boost-Build :

Subject: [Boost-build] How to run boost tests from the sandbox with msvc
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2011-02-10 03:24:54


I would like to test my type_traits extension with MSVC++ Express 2010.
I downloaded bjam 3.1.18 binary.
I set BOOST_BUILD_PATH to
D:\Softs\1.5\mgw-release\build\boost_1_43_0\tools\build\v2 (a location
where I built boost 1.43.0)
I added D:\Softs\Microsoft Visual Studio
10.0\VC\bin;D:\Softs\Microsoft Visual Studio 10.0\Common7\IDE to PATH
I put the following user-config.jam in the test directory:
using msvc : 10.0 : :
       <compileflags>"\"-ID:\\Softs\\Microsoft Visual Studio
10.0\\VC\\include\""
       <compileflags>"\"-ID:\\sandbox\\type_traits\""
       <compileflags>"\"-ID:\\Softs\\1.5\\mgw-release\\boost\\include\""
       ;

Then I run a dos command prompt and run:
$ D:\Softs\boost-jam-3.1.18-1-ntx86\bjam.exe
--user-config=user-config.jam -j 2 -d 2 toolset=msvc-10.0 operators >
bjam.log

but I get the errors reported below.

What is the procedure to run boost tests from the sandbox with msvc?
In particular, how can I set a directory search path for libraries at link time?

Thanks,

Frédéric

...patience...
...found 964 targets...
...updating 180 targets...

file ..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.obj.rsp
"has_operator_plus_test.cpp"
 -Fo"..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.obj"
    -TP
 /Z7
 /Od
 /Ob0
 /W3
 /GR
 /MDd
 /Zc:forScope
 /Zc:wchar_t
 /wd4675
 /EHs
 "-ID:\Softs\Microsoft Visual Studio 10.0\VC\include"
 "-ID:\sandbox\type_traits"
 "-ID:\Softs\1.5\mgw-release\boost\include"
 -c

"-ID:\Softs\1.5\mgw-release\build\boost_1_43_0"

"-ID:\sandbox\type_traits"

compile-c-c++ ..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.obj

    call "D:\Softs\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.obj.rsp"~

has_operator_plus_test.cpp

file ..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.exe.rsp

"..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.obj"

msvc.link ..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.exe

        call "D:\Softs\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DEBUG /MACHINE:X86 /subsystem:console
/out:"..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.exe"
  @"..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.exe.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'msvcprtd.lib'
...failed msvc.link
..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.exe
..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi\has_operator_plus_test.pdb...
...skipped <p..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi>has_operator_plus_test.run
for lack of <p..\bin.v2\test\has_operator_plus_test.test\msvc-10.0\debug\threading-multi>has_operator_plus_test.exe...


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