Jump to content

  • Log In with Google      Sign In   
  • Create Account


SDL release error


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   -  Reputation: 591

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.

"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"

"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"

 

 


Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9125

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   -  Reputation: 591

Like
0Likes
Like

Posted 04 December 2012 - 01:47 PM

Thank you

"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"

"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"

 

 





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.



PARTNERS