Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/159.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在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 - Fatal编程技术网

在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编译的