Re: [Boost-users] STL-PORT and VC 7.1

Hi, This is the program taken from the tutorial I am trying to compile/link: http://www.boost.org/libs/filesystem/example/simple_ls.cpp The compile options are /O2 /I "c:\vendor_libs\VC71\include\stlport" /I "C:\cfxa_build\include" /I "c:\vendor_libs\VC71\include" /I "c:\vendor_libs\VC71\include\stingray\Grid" /I "c:\vendor_libs\VC71\include\stingray\Toolkit" /I "c:\vendor_libs\VC71\include\stingray\Foundation" /I "c:\vendor_libs\VC71\include\stingray" /I "C:\GDA\include" /D "ACL_STATIC_LINK" /D "ACL_STLPORT" /D "_WINDOWS" /D "_DEBUG" /D "_CRTDBG_MAP_ALLOC" /D "WIN32" /D "HAVE_STLPORT" /D "HAVE_GDA" /D "_WIN32_WINNT=0x0501" /D "WINVER=0x0501" /D "_STLP_DEBUG" /D "_MBCS" /FD /EHsc /MDd /GS /GR /YX"stdafx.h" /Fp"Release/Threading.pch" /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP And the link does: /OUT:"Release/Threading.exe" /INCREMENTAL /NOLOGO /LIBPATH:"c:\vendor_libs\VC71\include\stlport\..\..\lib" /LIBPATH:"c:\vendor_libs\VC71\lib" /LIBPATH:"C:\GDA\lib" /LIBPATH:"C:\cfxa_build\lib\HAVE_GDA_debug" /LIBPATH:"c:\vendor_libs\VC71\lib\boost\VC7_STLPORT" /DEBUG /PDB:"Release/Threading.pdb" /SUBSYSTEM:CONSOLE /OPT:NOREF /OPT:NOICF /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib It seems the library can be found, however after this I am getting the following error: Linking... main.obj : error LNK2019: unresolved external symbol "public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall boost::filesystem::path::leaf(void)const " (?leaf@path@filesystem@boost@@QBE?AV?$basic_string@DV?$char_traits@D@_ST L@@V?$allocator@D@2@@_STL@@XZ) referenced in function _main main.obj : error LNK2019: unresolved external symbol "public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall boost::filesystem::path::native_directory_string(void)const " (?native_directory_string@path@filesystem@boost@@QBE?AV?$basic_string@DV ?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@XZ) referenced in function _main main.obj : error LNK2019: unresolved external symbol "public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall boost::filesystem::path::native_file_string(void)const " (?native_file_string@path@filesystem@boost@@QBE?AV?$basic_string@DV?$cha r_traits@D@_STL@@V?$allocator@D@2@@_STL@@XZ) referenced in function _main main.obj : error LNK2019: unresolved external symbol "public: __thiscall boost::filesystem::path::path(char const *,bool (__cdecl*)(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &))" (??0path@filesystem@boost@@QAE@PBDP6A_NABV?$basic_string@DV?$char_traits @D@_STL@@V?$allocator@D@2@@_STL@@@Z@Z) referenced in function _main main.obj : 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@filesystem@boost@@YA_NABV?$basic_string@DV?$char_traits@D@_STL@ @V?$allocator@D@2@@_STL@@@Z) referenced in function _main Release/Threading.exe : fatal error LNK1120: 5 unresolved externals Many thinks for help, No idea what is wrong!!! Pshemek Kind regards Pshemek Przemyslaw Sliwa Global Foreign Exchange FX Risk Engine Development Merrill Lynch ( +44 (0)20 7995 4182 ) +44 (0)79 6325 2319 * Email: przemyslaw_sliwa@ml.com -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Rene Rivera Sent: 19 January 2006 16:25 To: boost-users@lists.boost.org Subject: Re: [Boost-users] STL-PORT and VC 7.1 Sliwa, Przemyslaw (London) wrote:
Can anyone help me with this issue.
Not without more detail. Like the errors you are getting and how your are building. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ --------------------------------------------------------

Sliwa, Przemyslaw (London) wrote:
This is the program taken from the tutorial I am trying to compile/link: http://www.boost.org/libs/filesystem/example/simple_ls.cpp
From below I can't see which of the filesystem lib variants it's trying to link to. Somewhere in your compile log you should have a "linking to ..." mentioning the filesystem lib. Could you post that.
"_WIN32_WINNT=0x0501" /D "WINVER=0x0501" /D "_STLP_DEBUG" /D "_MBCS" /FD
Well during building bjam sets: /D "_STLPORT_DEBUG=1", but I can't remember if the value matters.
Linking... main.obj : error LNK2019: unresolved external symbol "public: class _STL::basic_string<char,class _STL::char_traits<char>,class
The "_STL::..." is a sign that it's not using STLport somehow. Because it should be using something like "stlp_std::...". -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
participants (2)
-
Rene Rivera
-
Sliwa, Przemyslaw (London)