Subject: [Boost-build] Linker can't find library file
From: Dmitry Timoshenko (dimentiy2k_at_[hidden])
Date: 2011-04-03 13:28:59
I have a project being compiled with boost.build.
Everything is fine except when compiling one of variants.
I defined two new variants like this:
variant debug-ssl : debug : <define>UNICOMM_SSL ;
variant release-ssl : release : <define>UNICOMM_SSL ;
There is a problem when the debug-ssl link=shared compiled.
I also put the line
into requirements part of argurments to the project rule in order to
make boost.build to use static libraries to be linked.
When debug-ssl is linked I get the error:
cannot open file 'libboost_date_time-vc80-mt-gd-1_41.lib'
The library is actually compiled and located in subdirectory
...../debug-ssl/..... but it has a little bit different name that
differs only in one letter 'd'.
The compiled name is 'libboost_date_time-vc80-mt-g-1_41.lib'.
I found out that 'g' is debug runtime and 'd' is debug version of my
code without NDEBUG defined.
The 'pure' debug version (built with debug variant) has the letter 'd'.
Where am I wrong? How to resolve this?
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