- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
与 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
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 This library implements functionality for securitycookie verification that can be used in the user mode and inapplications that use the Win32 API. Most applications link to thislibrary.
bufferoverflowK.lib This library implements the check of asecurity cookie that works in the kernel mode of the operating system.Services and subsystems that run in the kernel mode have to be linkedto this library.
bufferoverflow.lib This library implementsfunctionality for security cookie verification that can be used in theuser mode. However, bufferoverflow.lib is different frombufferoverflowU.lib because bufferoverflow.lib can be used in servicesand in applications that do not use the Win32 API.
/GS
的情况下重建 curl编译器开关,
In Microsoft Visual Studio 2002, a new compiler switch that is named "/GS" has been introduced to the Microsoft Visual C++ compiler. Whenthe " /GS" switch is set, the compiler injects buffer overrundetection code in the compiled code.
关于gcc 链接器错误 : undefined reference to `__security_cookie' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21627607/
与 gcc我想建一个DLL ,它使用 Curl 库。 后 $gcc -shared -o GA_TestLibV11.dll GA_TestLibV11.o GA_TestLibV11.def cur
我是一名优秀的程序员,十分优秀!