Jump to content
  • Advertisement
Sign in to follow this  
dAmAtA_cHiP

compiling release builds

This topic is 4974 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

i just tried compiling a program im making using SDL today as a release build instead of debug in VS NET. it compiles fine when under debug, but under release it comes up with alot of unresolved external symbol errors for SDL functions: ArachNad error LNK2001: unresolved external symbol _SDL_SetAlpha ArachNad error LNK2001: unresolved external symbol _SDL_FillRect ArachNad error LNK2001: unresolved external symbol _SDL_MapRGB ArachNad error LNK2001: unresolved external symbol _SDL_UpperBlit ArachNad error LNK2001: unresolved external symbol _SDL_UpperBlit i dont really understand the difference between debug and release builds, could someone explain that to me? and also, how can i get rid of these errors?

Share this post


Link to post
Share on other sites
Advertisement
Yea when you set up your project and listed SDL.LIB in your linker, you probably did it for Debug mode only, since that's the mode most new projects are loaded in. If you're using VC++, the best thing to do is to select the "All Builds" option when editing project options for listing libraries to link to.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!