I worked on several small C ++ projects using nuwen.net minGW distro , and I ran into a problem trying to communicate with the boost :: filesystem library. I call g ++ as follows:
g++ -g -Wall -pedantic -std=c++0x -static-libgcc -o main.exe main.cpp -lmingw32 -lstdc++ -lboost_system -lboost_filesystem
However, this leads to a linker error.
/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
This previous question had a problem using library versions that were compiled with different versions of gcc. However, I do not know if this problem is a problem, since all the packages in the latest version of the nuwen.net distribution have been compiled with gcc 4.5.
source
share