Jump to content
  • Advertisement
Sign in to follow this  
IsakMtz

Building Chocolate Doom on Windows, using CodeBlocks

This topic is 2218 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
__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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!