Boost logo

Boost Users :

From: Delfin Rojas (drojas_at_[hidden])
Date: 2005-07-25 14:03:10


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

 

  _____

From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Mesut Büyüktokatli
Sent: Sunday, July 24, 2005 7:19 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] problem using boost::filesystem

 

Hello...
I am triing to use the boost::filesystem library. But actually i am stucked
using it. I have WindowsXP without a service pack. I am using
Visual Studio 6.0 installed in default folders for VS6. I am using stlport
but without the iostreams. After uncompressing boost, i compiled
boost with bjam with following statement:

bjam "-sTOOLS=msvc-stlport" "-sSTLPORT_VERSION=4.6"
"-sSTLPORT_PATH=..\stlport" "-sBUILD=debug <stlport-iostream>off" stage

Compilation has no errors and all libs are build. Now i want to use
boost::filesystem::path, example:

If i use following code:

boost::filesystem::path( "C:\\" );

System makes an kernal32 exception and crashs.



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