Sign in to follow this  
Crusable77

SDL release error

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
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

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