Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

SDL release error

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Crusable   Members   

594
Like
0Likes
Like

Posted 04 December 2012 - 01:13 PM

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.

#2 SiCrane   Moderators   

11817
Like
1Likes
Like

Posted 04 December 2012 - 01:18 PM

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.

#3 Crusable   Members   

594
Like
0Likes
Like

Posted 04 December 2012 - 01:47 PM

Thank you




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.