|
Boost-Build : |
From: Wieger Wesselink (wieger_at_[hidden])
Date: 2005-03-14 06:00:18
Hello,
I'm trying to compile John Torjo's logging library
(http://www.torjo.com/code/logging-v131.zip) 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
msvc.link.dll ..\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-
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. 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
<source>../src//log
<source>../../../../boost/libs/thread/build//boost_thread
<include>../../..
;
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
<include>../../..
<include>../../../../boost
;
lib log : functions.cpp log.cpp log_manager.cpp : ;
Best regards,
Wieger
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