Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL release error

Started by Crusable77 Dec 4, 2012 at 7:13 PM 1 replies 1.2k views
Original Post
Crusable77
Crusable77
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.
SiCrane
SiCrane
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.