• Advertisement
Sign in to follow this  

SDL release error

This topic is 1875 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, i am trying to release a project but i get these errors:


1>------ Build started: Project: M1S2, Configuration: Release Win32 ------
1> Engine.cpp
1> Include.cpp
1> main.cpp
1>Engine.obj : error LNK2001: unresolved external symbol _SDL_Init
1>Engine.obj : error LNK2001: unresolved external symbol _SDL_SetVideoMode
1>Engine.obj : error LNK2001: unresolved external symbol _SDL_WM_SetCaption
1>Engine.obj : error LNK2001: unresolved external symbol _SDL_Flip
1>Engine.obj : error LNK2001: unresolved external symbol _SDL_FreeSurface
1>main.obj : error LNK2001: unresolved external symbol _SDL_Delay
1>main.obj : error LNK2001: unresolved external symbol _SDL_Quit
1>MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
1>c:\users\mathew\documents\visual studio 2010\Projects\M1S2\Release\M1S2.exe : fatal error LNK1120: 8 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

When i looked this up on google, it said that what im trying to use cannot be found. The game runs in debug but when i try to release as an exe it doesn't. Please help.

Share this post


Link to post
Share on other sites
Advertisement
You probably only specified SDL.lib and SDLmain.lib as additional libraries for Debug and not Release. Go to your project properties and add them to your linker inputs for Release as well.

Share this post


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

  • Advertisement