Sign in to follow this  
effers

Visual C++ / SDL

Recommended Posts

effers    100
Something I avoid is asking a question without doing any research since that is a pet peeve of mine. My hope is I didn't overlook something plainly obvious. What I want to do is get SDL working with Visual C++ Express 2010. From LibSDL's site I downloaded SDL-devel-1.2.14-VC8.zip then placed it into a folder called LIB_SDL. This is located at the root of my C drive. C:\LIB_SDL\SDL-1.2.14 From Project > Properties > Configuration Properties > VC++ Directories I added C:\LIB_SDL\SDL-1.2.14\include to Include Directories and C:\LIB_SDL\SDL-1.2.14\lib to the Library Directories. In Linker > Input I added sdl.lib and sdlmain.lib to Additional Dependencies. When I try to run the project it tells me that "This application has failed to start because SDL.dll was not found..." The instructions (http://pgdc.purdue.org/sdltutorial/sdl_setup.html) were for a Console Application and I am using a Win32 Project. I'm used to Xcode so Visual C++ is a bit different to me. Any help or good pages to review would be greatly appreciated! #pragma comment(lib, "SDL.lib") #pragma comment(lib, "SDLmain.lib") #include "SDL.h" int main(int argc, char **argv) { return 0; }

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