Displaying 2 results from an estimated 2 matches for "lboost_system".
2017 Feb 15
2
Problem using Boost Filesystem with Clang
...::cout << "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”
A...
2012 Nov 27
1
Problems with MinGW and boost on Windows
...include
-I/R/R-2.15.1/library/Rcpp/include -I/Sys/boost/boost_1_50_0
g++ -shared -fPIC -o Debug64/Tester.dll @"MinGW\Tester.txt" -L.
-L/R/R-2.15.1/library/Rcpp/lib/x64 -L/R/R-2.15.1/bin/x64
-L/Sys/boost/MinGW64/boost_1_50_0/lib -LDebug64 -lRcpp -lR
-lboost_serialization-mgw46-mt-d-1_50 -lboost_system-mgw46-mt-d-1_50
-Wl,--out-implib="Debug64/libTester.a" -m64
And for boost:
b2.exe --prefix=c:\Sys\boost\MinGW64\boost_1_50_0 toolset=gcc
address-model=64 link=static,shared -s BZIP2_SOURCE=C:\Sys\bzip2-1.0.6 -s
ZLIB_SOURCE=C:\Sys\zlib-1.2.7 install
Also note that this works fine on linu...