Sign in to follow this  
IsakMtz

Building Chocolate Doom on Windows, using CodeBlocks

Recommended Posts

IsakMtz    106
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?

Share this post


Link to post
Share on other sites
Ectara    3097
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

Share this post


Link to post
Share on other sites
SiCrane    11839
__security_cookie is an implementation detail of the [url=http://support.microsoft.com/kb/894573]MSVC stack buffer overrun detection mechanism[/url]. 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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this