Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <boost/filesystem.hpp>
- namespace fs = boost::filesystem;
- int main(/*int argc, char** argv*/)
- {
- fs::path path;
- return 0;
- }
- /*
- With -lboost_system
- C:\Users\andre\Desktop\clang test>g++ main.cxx -O3 -o app.exe -std=c++14 -I E:\Info\include\boost_1_62_0 -L "E:\Info\include\boost_1_62_0\stage\mingw 6.1 64" -lboost_system
- E:/Info/Software/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lboost_system
- collect2.exe: error: ld returned 1 exit status
- Without:
- C:\Users\andre\Desktop\clang test>g++ main.cxx -O3 -o app.exe -std=c++14 -I E:\Info\include\boost_1_62_0 -L "E:\Info\include\boost_1_62_0\stage\mingw 6.1 64"
- C:\Users\andre\AppData\Local\Temp\ccfsiByS.o:main.cxx:(.text.startup+0x2d): undefined reference to `boost::system::generic_category()'
- C:\Users\andre\AppData\Local\Temp\ccfsiByS.o:main.cxx:(.text.startup+0x32): undefined reference to `boost::system::generic_category()'
- C:\Users\andre\AppData\Local\Temp\ccfsiByS.o:main.cxx:(.text.startup+0x3c): undefined reference to `boost::system::system_category()'
- collect2.exe: error: ld returned 1 exit status
- */
Add Comment
Please, Sign In to add comment