Well, when i try boost::filesystem::path(“C:\\”, boost::filesystem::native);
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 &))" (??
0path@filesystem@boost@@QAE@PBDP6A_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@_STL@@@_STL@@@Z@Z)
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 &)" (?native@filesystem@boost@@YA_NABV?$basic_s
tring@DU?$char_traits@D@std@@V?$allocator@D@_STL@@@_STL@@@Z)
Debug/Tutorial02.exe : fatal error LNK1120: 2 unaufgeloeste externe Verweise
(Sorry its german writings in it)
 
Mesut

----- Original Message -----
From: Delfin Rojas
To: boost-users@lists.boost.org
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 <boost/libs/filesystem/example>

 

Hope this helps,

 

-delfin