Boost logo

Boost Users :

From: Adrian Grigore (adrian_at_[hidden])
Date: 2005-07-20 14:21:51


Hi,

I've been happily using Boost 1.32 with Visual C++ 7.1 for a few months.
Now I'd like to switch to STLPort, but can’t get my project to compile
with STLPort due to linker errors (LNK2019 and LNK2001) in every boost
library I use (signals, filesystem, thread).

First I installed STLPort and to make sure that it is working properly
with a dummy (boostless) project.

Then I re-compiled boost with the stlport toolset:

bjam "-sTOOLS=vc-7_1-stlport" "-sSTLPORT_PATH=C:\Programme\Microsoft
Visual Studio .NET 2003\add-ons" "-sSTLPORT_VERSIONS=4.6.1"
"-sPYTHON_ROOT=c:/Programme/Python24" install

Last but not least, I recompiled my project (multithreaded, static
runtime) which is using boost. I got 9 errors such as these:

WxNonogram error LNK2001: unresolved external symbol "public: __thiscall
boost::signals::detail::signal_base::signal_base(class
boost::function2<bool,class boost::any,class boost::any,class
_STL::allocator<class boost::function_base> > const &,class boost::any
const &)"
(??0signal_base_at_detail@signals_at_boost@@QAE_at_ABV?$function2@_NVany_at_boost@@V12_at_V?$allocator_at_Vfunction_base_at_boost@@@_STL@@@3_at_ABVany@3@@Z)

WxNonogram error LNK2019: unresolved external symbol "bool __cdecl
boost::filesystem::native(class _STL::basic_string<char,class
_STL::char_traits<char>,class _STL::allocator<char> > const &)"
(?native_at_filesystem@boost@@YA_NABV?$basic_string_at_DV?$char_traits_at_D@_STL@@V?$allocator_at_D@2@@_STL@@@Z)
referenced in function "public: virtual bool __thiscall
CMyWxApp3_wxstaticApp::OnInit(void)"
(?OnInit_at_CMyWxApp3_wxstaticApp@@UAE_NXZ)

I also defined BOOST_LIB_DIAGNOSTIC to see which libraries are linked
against to. Strangely enough, it seems to link to the correct libraries
as I got messages such as these:

"Linking to lib file: libboost_signals-vc71-mt-sgdp-1_32.lib"

and it still complains about signals not being resolved after linking.

Unfortunately I do not have a clue on how to proceed. Any help would be
appreciated. Thanks! :-)

- Adrian


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