Sign in to follow this  

Visual Studio (2010) Question Regarding Linker

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

I had a quick question, regarding the linker in VS 2010.
It seems everytime I make a project (im practicing OPENGL btw)
I have to add the glu32.dll and freeglut.dll to the Linker.

Is there any way to make it where I dont have to do this EVERYTIME I make a new project?


Im not that versed in Visual Studio, but this would be extremely time saving.
Thanks all!

Share this post


Link to post
Share on other sites
Your best bet is simply to create a property sheet that includes everything you always do every time. Every time you make a new project, just include that one property sheet and everything else will be taken care of.

You can make a new project template that does this, but its' too complicated. I think your best bet is to just settle for agreeing to do 1 thing every time you make a new project, but that 1 thing can do an arbitrary number of things for you automatically, such as setting preprocessor defines, include directory, linker settings, etc.

Share this post


Link to post
Share on other sites
There's also the other option of doing this in a .cpp file:

#pragma comment(lib, "glu32")
#pragma comment(lib, "freeglut")


That will make the linker look for those .lib files.

However creating new projects isn't usually something that's done very frequently, so I'd just add them to the settings for each one.

Share this post


Link to post
Share on other sites

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