0
我在Windows XP SP3上使用codeblocks 10.05 mingw,我正在尝试构建boost asio client ssl example。我尝试使用以下库来编译文件以及链接器设置。升压asio ssl客户端生成错误?
libwsock32.a from the mingw lib
libws2_32.a from the mingw lib
libboost_system-mgw44-d-1_52.a this is what I built myself using mingw, the same version. I did this by using boost jam [http://theseekersquill.wordpress.com/2010/08/24/howto-boost-mingw/][2].
I got the next four libs from libcurl curl-7.28.1-devel-mingw32
libcrypto.a
libcrypto.dll.a
libssl.a
libssl.dll.a
and the following are my linker settings:
-lboost_system
-lcrypto
-lssl
和下面的是链接错误:
\mingw\lib\libboost_system.a(error_code.o):error_code.cpp|| undefined reference to `_Unwind_Resume'|
\mingw\lib\libboost_system.a(error_code.o):error_code.cpp|| undefined reference to `_Unwind_Resume'|
\mingw\lib\libboost_system.a(error_code.o):error_code.cpp|| undefined reference to `_Unwind_Resume'|
\mingw\lib\libboost_system.a(error_code.o):error_code.cpp:(.eh_frame+0xa3)||undefined reference to `__gxx_personality_v0'|
||=== Build finished: 4 errors, 0 warnings ===|
什么我不知道为什么就是不提高包括这个或MinGW的SSL库的这一事实,是有一些方法来解决这个?我知道有两种类型的mingw目标代码SJLJ和DW2,可能是这个原因,但我不确定。
这是我想通了,什么是错误的链接libcurl curl-7.28.1-devel-mingw32