
Hi,
I have been trying to get filesystem::file_size() on boost_1_46_1 to work but am getting the following error:
$ ./tut1 tut1.cpp
boost::filesystem::file_size: Not owner: "tut1.cpp"
Note: To avoid core file I modified tut1.cpp so that it catches exceptions.
The permissions and ownership of tut1.cpp seem fine:
-rw-r--r-- 1 redtaza staff 760 2011-05-07 10:40 tut1.cpp
$ uname -a
SunOS lunar 5.11 snv_151a i86pc i386 i86pc Solaris
$ CC -V
CC: Sun C++ 5.11 SunOS_i386 2010/08/13
usage: CC [ options ] files. Use 'CC -flags' for details
$ CC -g -library=stlport4 -I/usr/local/boost_1_46_1/include tut1.cpp -o tut1 /usr/local/boost_1_46_1/lib/libboost_system.a /usr/local/boost_1_46_1/lib/libboost_filesystem.a
Boost was built with the toolset sun and no other options.
Also if I compile and run the following code (which I believe is similar to the code that file_size()) I get expected results:
#include <iostream>
#include