search for: lboost_filesystem

Displaying 1 result from an estimated 1 matches for "lboost_filesystem".

2017 Feb 15
2
Problem using Boost Filesystem with Clang
..."Usage: tut1 path\n"; return 1; } std::cout << argv[1] << " " << file_size(argv[1]) << '\n'; return 0; } ------------------------------------------------------------------------ If I compile with g++ using "g++ -lboost_system -lboost_filesystem main.cpp” and run it I obtain the size of a file that I use as input. If I compile with clang++ using " clang++ -std=c++11 -stdlib=libc++ -lboost_system -lboost_filesystem main.cpp” when I run the program I get the error: "boost::filesystem::file_size: Bad address” Any idea why? Thank...