Boost logo

Boost-Build :

From: Wieger Wesselink (wieger_at_[hidden])
Date: 2005-03-14 06:00:18


I'm trying to compile John Torjo's logging library
( with BBv2, but I get
stuck. This library depends on the thread library and on the autolink
feature of boost, both of which give problems. I wonder if someone
could give me advice on how to proceed. Here is what I did:

bjam --v2 msvc link=shared ..\src\bin\msvc\debug\log.dll ..\src\bin\msvc\debug\log.
lib ..\src\bin\msvc\debug\log.rsp
functions.obj : error LNK2019: unresolved external symbol "public:
__thiscall boost::mutex::~mutex(void)" (??1mutex_at_boost@@QAE_at_XZ)
referenced in function $L89196

bjam --v2 msvc link=static
LINK : fatal error LNK1104: cannot open file 'libboost_log-vc71-mt-gd-

To prevent the last error I have experimented with setting
<define>BOOST_ALL_NO_LIB and/or <define>BOOST_LOG_NO_LIB, but this
didn't work either. Note that with shared linking the thread library
appears to be built correctly, since a file boost_thread-vc-mt-
d_1.32.0.dll is created in the current directory.

The jamfiles I have used are:

------- libs/log/examples/Jamfile.v2 --------
project log_basic
: requirements

exe basic_usage
: basic_usage/define.cpp basic_usage/init.cpp basic_usage/use.cpp
: <include>../..

stage dist
: basic_usage
: <location>.

------- libs/log/src/Jamfile.v2 --------
project log
: requirements

lib log : functions.cpp log.cpp log_manager.cpp : ;

Best regards,



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at