Hello: boost::filesystem with cygwin - windows style paths

Hello all, I've been fiddling around with the gnu gcc programming enviroment on cygwin, trying to make boost::filesystem work. I've hit a snag where the boost libraries consider my filesystem to be single rooted, and thus path won't take "c:\" as an argument. I've compiled the simple_ls.cpp program included in the documentation. It uses boost::filesystem::path::native_file_string(), and this returns a unix style path. I've tried running "simple_ls c:" but it complains that /home/<path to current dir>/c: is unavailable. I want to be able to use this in a program thats for windows, but independent of cygwin. Any ideas how to work around this?
Thanks Simon (ps: yah! my first post!)

"Simon Lam"
Hello all,
I've been fiddling around with the gnu gcc programming enviroment on cygwin, trying to make boost::filesystem work. I've hit a snag where the boost libraries consider my filesystem to be single rooted, and thus path won't take "c:\" as an argument.
I've compiled the simple_ls.cpp program included in the documentation. It uses boost::filesystem::path::native_file_string(), and this returns a unix style path. I've tried running "simple_ls c:" but it complains that /home/<path to current dir>/c: is unavailable.
I want to be able to use this in a program thats for windows, but independent of cygwin. Any ideas how to work around this?
Try the CVS head version. It should do a better job with cygwin. Let us know if you still have problems. --Beman PS: Another Boost.Filesystem update for CVS head should be ready sometime this week. Improved handling of status, status predicates, and no throw on certain errors.
participants (2)
-
Beman Dawes
-
Simon Lam