If you have boost library installed, you could also check the example
"libs/filesystem/v3/example/file_status.cpp".
Suppose the resulted executable is fs.exe, given a non exist filename
"foo" as input.
For pthread build,
$ ./fs.exe foo
For static build, i use the following
$ /opt/gcc/4.7.0-32.pthread/bin/g++ -pipe -o a.exe a.cpp
/opt/gcc/4.7.0-32.pthread/li
b/libstdc++.a
/opt/gcc
For example, executable of the following produced by
"i686-w64-mingw32-gcc-4.7.0-stdthread_rubenvb.7z" crashes, however,
others are fine.
Moreover, some strange behaviors are observed when using Boost.Filesystem.
--This is a
testcase---