Boost logo

Boost Users :

From: Sliwa, Przemyslaw (London) (Przemyslaw_Sliwa_at_[hidden])
Date: 2006-01-19 11:50:00


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

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

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Rene Rivera
Sent: 19 January 2006 16:25
To: boost-users_at_[hidden]
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_at_[hidden]
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/
--------------------------------------------------------

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