Jump to content
  • Advertisement
Sign in to follow this  
twoaterisn

VC++

This topic is 4420 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
Advertisement
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
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!