小编use*_*683的帖子

gcc链接器错误:未定义引用`__security_cookie'

gcc我想建立一个DLL,它采用了Curl库.

$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
Run Code Online (Sandbox Code Playgroud)

我收到以下警告(多次出现)

警告:.drectve`/manifestdependency:"type ='win32'name ='Microsoft.VC90.CRT'v ersion ='9.0.21022.8'inverlerArchitecture ='x86'publicKeyToken ='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 `@__security_check_cookie@4'

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
Run Code Online (Sandbox Code Playgroud)

还有什么可以链接来解决这些问题?

谢谢.

dll linker gcc curl

5
推荐指数
1
解决办法
4075
查看次数

标签 统计

curl ×1

dll ×1

gcc ×1

linker ×1