Sign in to follow this  
willthiswork89

my last question for sdl

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this