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.
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-gdp-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-gdp-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-gdp-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@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_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?$char_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
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@ml.com