[C++-sig] Boost / Bjam error : LNK1120

Coockie_jr achille.talon at gmail.com
Thu Jul 5 14:44:12 CEST 2007


While building with bjam I get the following error, I think It's a jamroot
configuration issue but I must admit I'm a bit lost.

-----------------------------------------------------------------------

Here's my log

Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
warning: No toolsets are configured.
warning: Configuring default toolset "msvc".
warning: If the default is wrong, you may not be able to build C++ programs.
warning: Use the "--toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning:
http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
...patience...
...found 1965 targets...
...updating 3 targets...
compile-c-c++ bin\msvc-8.0\debug\test.obj
test.cpp
msvc.link.dll bin\msvc-8.0\debug\test.pyd bin\msvc-8.0\debug\test.lib

   Creating library bin\msvc-8.0\debug\test.lib et de l'objet
bin\msvc-8.0\debug\test.exp

test.obj : error LNK2019: unresolved external symbol "public: static void
__cdecl test::cleanThread(void)" (?cleanThread at test@@SAXXZ) referenced in
function "void __cdecl init_module_test(void)" (?init_module_test@@YAXXZ)

test.obj : error LNK2019: unresolved external symbol "public: static void
__cdecl test::initialise(bool)" (?initialise at test@@SAX_N at Z) referenced in
function "void __cdecl init_module_test(void)" (?init_module_test@@YAXXZ)

test.obj : error LNK2019: unresolved external symbol "public: static bool
__cdecl test::initialised(void)" (?initialised at test@@SA_NXZ) referenced in
function "void __cdecl init_module_test(void)" (?init_module_test@@YAXXZ)

test.obj : error LNK2019: unresolved external symbol "public: static void
__cdecl test::release(void)" (?release at test@@SAXXZ) referenced in function
"void __cdecl init_module_test(void)" (?init_module_test@@YAXXZ)

bin\msvc-8.0\debug\test.pyd : fatal error LNK1120: 4 unresolved externals

        call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
x86 >nul
link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /subsystem:console
/out:"bin\msvc-8.0\debug\test.pyd" /IMPLIB:"bin\msvc-8.0\debug\test.lib"
/LIBPATH:"D:\Python25\libs"   @"bin\msvc-8.0\debug\test.pyd.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
        if exist "bin\msvc-8.0\debug\test.pyd.manifest" (
            mt -nologo -manifest "bin\msvc-8.0\debug\test.pyd.manifest"
"-outputresource:bin\msvc-8.0\debug\test.pyd;2"
        )
    
...failed msvc.link.dll bin\msvc-8.0\debug\test.pyd
bin\msvc-8.0\debug\test.lib...
...removing bin\msvc-8.0\debug\test.lib
...failed updating 2 targets...
...updated 1 target...

-----------------------------------------------------------------------


I'm not really sure if this is the right place to post this request 
-- 
View this message in context: http://www.nabble.com/-C%2B%2B-sig--Boost---Bjam-error-%3A-LNK1120-tf4029473.html#a11445734
Sent from the Python - c++-sig mailing list archive at Nabble.com.




More information about the Cplusplus-sig mailing list