Jump to content
  • Advertisement
Sign in to follow this  

my last question for sdl

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

to get any sdl program to compile in my visual studio .net 2003 i have to put this before i start coding any sdl #ifdef WIN32 #pragma comment(lib, "SDL.lib") #pragma comment(lib, "SDLmain.lib") #endif is there a way to include those without all that crap? like through tools->options?

Share this post


Link to post
Share on other sites
Advertisement
Yes, there is!

Go to Project->[Project Name] Properties, or right click on the project in the Solution Explorer window and select Properties.

Then go to Configuration Properties->Linker->Input

In the Additional Dependencies field, type SDL.lib SDLmain.lib and any other libraries you want to link, separated by spaces.

Also, be sure you do the same thing for all project configurations (ie. Debug and Release modes) by selecting all of the options in the Configuration drop down box and changing the input settings for each.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!