Boost logo

Boost Users :

From: Sliwa, Przemyslaw (London) (Przemyslaw_Sliwa_at_[hidden])
Date: 2006-01-19 13:31:51


Hi,
I have compiled the boost library for VC7.1 with STL_PORT using the
following command line arguments:
 
bjam -"sTOOLS=vc-7_1-stlport" --prefix=C:\Boost\temp install
Everything went fine after I have exported the STLPORT_PATH.
 
I create a simple project, code is generated for dynamic runtime lib
with the multithreaded option.
I can easily compile the example program from
http://www.boost.org/libs/filesystem/example/simple_ls.cpp
 
The compile options are
 
/O2 /I "c:\vendor_libs\VC71\include\stlport" /D "_WINDOWS" /D "_DEBUG"
/D "WIN32" /D "HAVE_STLPORT" /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 linker is invoked with
/VERBOSE:LIB /OUT:"Release/Threading.exe" /INCREMENTAL /NOLOGO
/LIBPATH:"c:\vendor_libs\VC71\include\stlport\..\..\lib"
/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
 
The link error I am getting is:
 
 
Linking...
Searching libraries
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\winspool.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\advapi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\shell32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\ole32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\oleaut32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\uuid.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbc32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbccp32.lib:
Searching
c:\vendor_libs\VC71\include\stlport\..\..\lib\stlport_vc71_stldebug.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\msvcprtd.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\MSVCRTD.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\OLDNAMES.lib:
Searching
C:\vendor_libs\VC71\lib\boost\VC7_STLPORT\libboost_filesystem-vc71-mt-gd
p-1_33_1.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\winspool.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\advapi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\shell32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\ole32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\oleaut32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\uuid.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbc32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbccp32.lib:
Searching
c:\vendor_libs\VC71\include\stlport\..\..\lib\stlport_vc71_stldebug.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\msvcprtd.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\MSVCRTD.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\OLDNAMES.lib:
Searching
C:\vendor_libs\VC71\lib\boost\VC7_STLPORT\libboost_filesystem-vc71-mt-gd
p-1_33_1.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\winspool.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\advapi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\shell32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\ole32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\oleaut32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\uuid.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbc32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbccp32.lib:
Searching
c:\vendor_libs\VC71\include\stlport\..\..\lib\stlport_vc71_stldebug.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\msvcprtd.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\MSVCRTD.lib:
Finished searching libraries
Searching libraries
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\winspool.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\advapi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\shell32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\ole32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\oleaut32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\uuid.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbc32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbccp32.lib:
Searching
c:\vendor_libs\VC71\include\stlport\..\..\lib\stlport_vc71_stldebug.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\msvcprtd.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\MSVCRTD.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\OLDNAMES.lib:
Searching
C:\vendor_libs\VC71\lib\boost\VC7_STLPORT\libboost_filesystem-vc71-mt-gd
p-1_33_1.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\winspool.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\advapi32.lib:
Searching C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\PlatformSDK\lib\shell32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\ole32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\oleaut32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\uuid.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbc32.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\odbccp32.lib:
Searching
c:\vendor_libs\VC71\include\stlport\..\..\lib\stlport_vc71_stldebug.lib:
Searching C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\lib\msvcprtd.lib:
Finished searching libraries
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_at_path@filesystem_at_boost@@QBE?AV?$basic_string_at_DV?$char_traits_at_D@_ST
L@@V?$allocator_at_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_at_path@filesystem_at_boost@@QBE?AV?$basic_string_at_DV
?$char_traits_at_D@_STL@@V?$allocator_at_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_at_path@filesystem_at_boost@@QBE?AV?$basic_string_at_DV?$cha
r_traits_at_D@_STL@@V?$allocator_at_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_at_filesystem@boost@@QAE_at_PBDP6A_NABV?$basic_string_at_DV?$char_traits
@D@_STL@@V?$allocator_at_D@2@@_STL@@@Z_at_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_at_filesystem@boost@@YA_NABV?$basic_string_at_DV?$char_traits_at_D@_STL@
@V?$allocator_at_D@2@@_STL@@@Z) referenced in function _main
Release/Threading.exe : fatal error LNK1120: 5 unresolved externals
Build log was saved at "file://h:\Visual Studio
Projects\Threading\Threading\Release\BuildLog.htm"
Threading - 6 error(s), 0 warning(s)
 
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped

 

 

This does not happen if I compile and link the program without STL_PORT
with proper boost complied bundle.

Can anyone help me with this issiue?

 

Thanks

 

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_at_[hidden]
--------------------------------------------------------

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/
--------------------------------------------------------



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