Boost logo

Boost Users :

Subject: [Boost-users] can't build threads on msvc-7.1
From: Larry E. Ramey (ramey_at_[hidden])
Date: 2009-01-15 19:01:58


I can't build the thread library. I have no idea why. ( What gregorian
date is doing in the thread lib eludes me )

I have changed boost/config/user.hpp to #define BOOST_ALL_DYN_LIN, of
course, that shouldn't effect threads.... but whatever....

Anyone got a clue?

C:\RTI\devroot\packages-src\boost_1_37_0>cl.exe
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.6030 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

C:\RTI\devroot\packages-src\boost_1_37_0>bjam --version
Boost.Build V2 (Milestone 12)
Boost.Jam 03.1.17

C:\RTI\devroot\packages-src\boost_1_37_0>bjam --with-thread
toolset=msvc-7.1 var
iant=release link=shared
WARNING: No python installation configured and autoconfiguration
        failed. See http://www.boost.org/libs/python/doc/building.html
        for configuration instructions or pass --without-python to
        suppress this message and silently skip all Boost.Python targets
...patience...
...found 716 targets...
...updating 2 targets...
msvc.link.dll
bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.dll

  Creating library
bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.lib

and object
bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.exp

thread.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::gregorian::greg_month::greg_month(unsigned short)" (__im
p_??0greg_month_at_gregorian@boost@@QAE_at_G@Z) referenced in function
"public: __thiscall boost::gregorian::date::date(enum
boost::date_time::special_values)" (??0da
te_at_gregorian@boost@@QAE_at_W4special_values_at_date_time_at_2@@Z)
bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.dll

: fatal error LNK1120: 1 unresolved externals

       call "C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\vcvars32.bat" >nul
link /NOLOGO /INCREMENTAL:NO /DLL /subsystem:console
/out:"bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.dll"

/IMPLIB:"bin
.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.lib"

@"bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_threa
d-vc71-mt-1_37.dll.rsp"
       if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
       if exist
"bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boos
t_thread-vc71-mt-1_37.dll.manifest" (
mt -nologo -manifest
"bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.dll.manifest"

"-outputresource:bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.dll;2"

       )

...failed msvc.link.dll
bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.dll

bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.lib...

...removing
bin.v2\libs\thread\build\msvc-7.1\release\threading-multi\boost_thread-vc71-mt-1_37.lib

...failed updating 2 targets...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net