Jump to content
  • Advertisement
Sign in to follow this  
MercenaryFH

Visual Studio (2010) Question Regarding Linker

This topic is 3030 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!