Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-03-14 06:06:08

Hi Wieger,
> Hello,
> 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

This is missing symbols from Boost.Thread, your Jamfile should be modified to

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

: requirements


lib log : functions.cpp log.cpp log_manager.cpp /boost/thread//boost_thread ;

> bjam --v2 msvc link=static
> LINK : fatal error LNK1104: cannot open file 'libboost_log-vc71-mt-gd-
> 1_32.lib'
> 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.

Could it be that the log libraries does not respect the above defines and
attempts to autolink in any case? You can take a look at the source to
determine if it's the case, or plain comment out any autolink code.

- Volodya


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