Visual Studio (2010) Question Regarding Linker

Started by
2 comments, last by Adam_42 13 years, 7 months ago
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!
Advertisement
Maybe like this?

EDIT:

That might not be for C++ (I didn't read the article). Here's one for creating C++ templates in Visual Studio 2010.
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.
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.

This topic is closed to new replies.

Advertisement