Jump to content

  • Log In with Google      Sign In   
  • Create Account

Building Chocolate Doom on Windows, using CodeBlocks


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 IsakMtz   Members   -  Reputation: 106

Like
1Likes
Like

Posted 21 August 2012 - 01:38 PM

Hello everybody. I Live in Mexico.
I tried to Build Chocolate Doom using CodeBlock, but I get the error undefined reference to '__security_cookie':

C:\sdl\sdl_Lib\SDLmain.lib(.\release_nostdio\SDL_win32_main.obj):(.text[_main]+0x5)||undefined reference to `__security_cookie'

My System is:
PC Core 2 Duo, Windows Vista 32bits, RAM 2G.
CodeBlock Ver. 10.05, Sdl ver. 1.2.15, SDL_mixer 1.2, Sdl_Net 1.2

What is wrong?

Sponsor:

#2 Ectara   Crossbones+   -  Reputation: 3058

Like
0Likes
Like

Posted 23 August 2012 - 07:18 PM

Can you post the section of code that refers to __security_cookie? Perhaps a simple "find text in files" will find the correct function; it may give a hint about what libraries the project needs.

Edited by Ectara, 23 August 2012 - 08:07 PM.


#3 SiCrane   Moderators   -  Reputation: 9670

Like
3Likes
Like

Posted 24 August 2012 - 10:03 AM

__security_cookie is an implementation detail of the MSVC stack buffer overrun detection mechanism. If you see this linker error it generally means that the library you are using was compiled with a relatively recent version of MSVC, but the compiler you are using either isn't MSVC or an older version. One way to address this issue is to link against one of the verification cookie libraries supplied in the Windows Platform SDK (generally bufferoverflowU.lib, see the previously linked article for the differences). Another option is to recompile the library that uses __security_cookie with the compiler you're using for the rest of your code. You could also switch to a recent version of MSVC.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS