title: gcc linker error: undefined reference to `__security_cookie'
body: <p>with <code>gcc</code> I want to build a <code>DLL</code>, which uses the Curl lib.</p>
  
  <p>After</p>
  
  <pre><code>$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
  </code></pre>
  
  <p><strong>I get the following warning (which appears many times)</strong></p>
  
  <p>Warning: .drectve `/manifestdependency:"type='win32' name='Microsoft.VC90.CRT' v
  ersion='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3
  b'" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized</p>
  
  <p><strong>and the following errors:</strong> </p>
  
  <pre><code>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
  </code></pre>
  
  <p>What else do I have to link to solve these problems?</p>
  
  <p>Thanks.</p>