xTachyon

Untitled

Nov 10th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <boost/filesystem.hpp>
  3.  
  4. namespace fs = boost::filesystem;
  5.  
  6. int main(/*int argc, char** argv*/)
  7. {
  8.   fs::path path;
  9.  
  10.   return 0;
  11. }
  12. /*
  13.  
  14. With -lboost_system
  15. 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
  16. 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
  17. collect2.exe: error: ld returned 1 exit status
  18.  
  19. Without:
  20. 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"
  21. C:\Users\andre\AppData\Local\Temp\ccfsiByS.o:main.cxx:(.text.startup+0x2d): undefined reference to `boost::system::generic_category()'
  22. C:\Users\andre\AppData\Local\Temp\ccfsiByS.o:main.cxx:(.text.startup+0x32): undefined reference to `boost::system::generic_category()'
  23. C:\Users\andre\AppData\Local\Temp\ccfsiByS.o:main.cxx:(.text.startup+0x3c): undefined reference to `boost::system::system_category()'
  24. collect2.exe: error: ld returned 1 exit status
  25. */
Add Comment
Please, Sign In to add comment