Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2004-08-17 07:19:40


Bugs item #1010681, was opened at 2004-08-17 14:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1010681&group_id=7586

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Carlo Wood (libcw)
Assigned to: Nobody/Anonymous (nobody)
Summary: boost::filesystem::exists is broken on cygwin

Initial Comment:
Compile the following code snippet:

#include <iostream>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>

int main()
{
  boost::filesystem::path p = "/usr";
  if (!boost::filesystem::exists(p))
    std::cerr << p.string() << " doesn't exist
according to boost::filesystem" << std::endl;
}

$ uname -a
CYGWIN_NT-5.0 vmware 1.5.10(0.116/4/2) 2004-05-25 22:07
i686 unknown unknown Cygwin

$ g++ -g -I"/usr/src/install/3.3.1/include/boost-1_31"
test.cc -L"/usr/src/install/3.3.1/lib"
-lboost_filesystem-gcc-d-1_31
$ ./a.exe
/usr doesn't exist according to boost::filesystem

Needless to say that /usr does exist:

$ ls -ld /usr
drwxrwxrwx+ 18 carlo Gebruike 4096 Aug 8 14:49
/usr

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1010681&group_id=7586

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk