Boost logo

Boost Users :

From: Pete (petehug_at_[hidden])
Date: 2005-07-25 23:03:41

I'm fiddling with the same stuff at the moment. The problem you're
having is that the way you compiled the boost::filesystem library is not
compatible with the stlport library (just check and you'll see that the
mangled names of the functions the linker needs contain the substring
_STL, whereas the corresponding mangled names in the library you're
linking with have the substring std in the same place instead). What you
could do is add the switch -d+2 to the bjam command line when you build
the library. It will show you the stlport library switches used.
I ended up copying the stuff that bjam printed to the terminal and
pasted it into a text editor. Then I changed all the switches that I
didn't think were right and saved the file as a batch file which I then
executed to build the library (yikes!). But as far as I can tell there
is no way to build boost "out of the box" with bjam using VC++ 6.0 and
Anyway, with the exception of the filesystem::path::iterator all is
working ok using this approach.

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Mesut
Sent: Tuesday, 26 July 2005 9:29 a.m.
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] problem using boost::filesystem

Well, when i try boost::filesystem::path(“C:\\”,
i get a linker error saying this:
Tutorial02.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall boost::filesystem::path::path(char const *,bool
(__cdecl*)(class _STL::basic_string<char,struct
std::char_traits<char>,class _STL::allocator<char> > const &))" (??
Tutorial02.obj : error LNK2001: Nichtaufgeloestes externes Symbol "bool
__cdecl boost::filesystem::native(class _STL::basic_string<char,struct
std::char_traits<char>,class _STL::allocator<char> > const &)"
Debug/Tutorial02.exe : fatal error LNK1120: 2 unaufgeloeste externe

(Sorry its german writings in it)

----- Original Message -----
From: Delfin <mailto:drojas_at_[hidden]> Rojas
To: boost-users_at_[hidden]
Sent: Monday, July 25, 2005 9:03 PM
Subject: Re: [Boost-users] problem using boost::filesystem

Try boost::filesystem::path(“C:\\”, boost::filesystem::native);


You can also take a look at the examples under


Hope this helps,



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at