Sign in to follow this  

VC++

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

Hey, I'm currently switching from Dev-C++ to MS visual C++, but I cant seem to find where/how to link my libraries (SDL). MSDN isn't quite helpful on this one :( so could anyone enlighten me? thx

Share this post


Link to post
Share on other sites
Go to project settings, then select the linker folder. There should be an section called input. Go there and put your libraries in the additional dependencies area. Alternately, you can just add .lib files to the source files section of your project.

Share this post


Link to post
Share on other sites

I'm probably making some stupid mistakes here:

I've got this in the source

#include <SDL\SDL.h>

and put

C:\Dev-Cpp\include\ (that's where I have the header files for now)

in the additional dependencies, but it doesn't work.

Share this post


Link to post
Share on other sites
Hi there,

In MSVC++ under the Project->Settings menu, you will be able to fill in the extra libraries you require.

But I prefer to use the alternate method: in your code or include file, just ust the statement:

#pragma comment(lib, "sdl.lib")

That's now if you have the library path right in the VC++ preferences.

Hope you get it right!
Snows

Share this post


Link to post
Share on other sites

This topic is 4201 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.

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