with gcc
我想構建一個使用Curl庫的DLL
。gcc鏈接器錯誤:undefined reference to __security_cookie
後
$gcc -shared -o GA_TestLibV11.dll GA_TestLibV11.o GA_TestLibV11.def curllib_static.lib
$ gcc -shared -o GA_TestLibV11.dll GA_TestLibV11.o GA_TestLibV11.def curllib_static.lib -llibws2_32
我得到以下警告(其中多次出現)
警告:.drectve`/ manifestdependency:「類型= 'win32的' 名字='Microsoft.VC90。 CRT」 v 版爲= '9.0.21022.8' ProcessorArchitecture用於= '86' 公鑰= '1fc8b3b9a1e18e3 b'」/DEFAULTLIB: 「MSVCRT」/ DEFAULTLIB: 「OLDNAMES」'無法識別
個以下錯誤:
curllib_static.lib(./Release/easy.obj):(.text[_win32_init]+0x7): undefined reference to `__security_cookie'
curllib_static.lib(./Release/easy.obj):(.text[_win32_init]+0x41): undefined reference to `@[email protected]'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: curllib_st
atic.lib(./Release/easy.obj): bad reloc address 0x41 in section `.text[_win32_in
it]'
collect2.exe: error: ld returned 1 exit status
還有什麼我必須鏈接到解決這些問題?
謝謝。