在nuwen.net minGW发行版中使用boost::filesystem? 我一直在使用一些小C++项目,我遇到了一个问题,试图与Booost::文件系统库链接。我是这样调用g++的: g++ -g -Wall -pedantic -std=c++0x -static-libgcc -o main.exe main.cpp -lmingw32 -lstdc++ -lboost_system -lboost_filesystem
但是,这会导致链接器错误在nuwen.net minGW发行版中使用boost::filesystem? 我一直在使用一些小C++项目,我遇到了一个问题,试图与Booost::文件系统库链接。我是这样调用g++的: g++ -g -Wall -pedantic -std=c++0x -static-libgcc -o main.exe main.cpp -lmingw32 -lstdc++ -lboost_system -lboost_filesystem,c++,gcc,boost,C++,Gcc,Boost,但是,这会导致链接器错误 /mingw/lib/libboost_system.a(error_code.o):error_code.cpp:(.text+0x15f): undefin ed reference to `_Unwind_Resume' /mingw/lib/libboost_system.a(error_code.o):error_code.cpp:(.text+0x354): undefin ed reference to `_Unwind_Resume' /mingw/li
/mingw/lib/libboost_system.a(error_code.o):error_code.cpp:(.text+0x15f): undefin
ed reference to `_Unwind_Resume'
/mingw/lib/libboost_system.a(error_code.o):error_code.cpp:(.text+0x354): undefin
ed reference to `_Unwind_Resume'
/mingw/lib/libboost_system.a(error_code.o):error_code.cpp:(.eh_frame+0x12): unde
fined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
使用使用不同版本的gcc编译的库版本时出现问题。然而,我不知道这是否是问题所在,因为nuwen.net发行版最新版本中的所有包都是用GCC4.5编译的