gcc链接器错误:未定义对`uu security_cookie';
使用gcc链接器错误:未定义对`uu security_cookie';,gcc,curl,dll,linker,Gcc,Curl,Dll,Linker,使用gcc我想构建一个DLL,它使用Curl库 之后 我收到以下警告(多次出现) 警告:.drectve`/manifestdependency:“type='win32'name='Microsoft.VC90.CRT'v Version='9.0.21022.8'处理器架构='x86'公钥令牌='1fc8b3b9a1e18e3' b'/DEFAULTLIB:“MSVCRT”/DEFAULTLIB:“OLDNAMES”'无法识别 和以下错误: curllib_static.lib(./Rele
gcc
我想构建一个DLL
,它使用Curl库
之后
我收到以下警告(多次出现)
警告:.drectve`/manifestdependency:“type='win32'name='Microsoft.VC90.CRT'v
Version='9.0.21022.8'处理器架构='x86'公钥令牌='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
我还需要链接什么才能解决这些问题
谢谢。您需要链接其中一个bufferoverflow.lib库 bufferoverflowU.lib此库实现安全功能 可在用户模式和中使用的cookie验证 使用Win32 API的应用程序。大多数应用程序都链接到这一点 图书馆 bufferoverflowK.lib此库实现对 在操作系统的内核模式下工作的安全cookie。 必须链接在内核模式下运行的服务和子系统 到这个图书馆 bufferoverflow.lib此库实现 可在中使用的安全cookie验证功能 用户模式。但是,bufferoverflow.lib与 bufferoverflowU.lib,因为bufferoverflow.lib可以在服务中使用 在不使用Win32 API的应用程序中 更多信息请访问 或者,您必须在不使用
/GS
编译器开关的情况下重建curl
在Microsoft Visual Studio 2002中,新的编译器开关名为“
已被引入微软Visual C++编译器。什么时候
设置“/GS”开关后,编译器将注入缓冲区溢出
编译代码中的检测代码
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