How to permanently include openGL lib in Visual C++ enviroment

vtqanh

Diamond Member
Jan 4, 2001
3,100
0
76
Everytime i create an OPENGL project in Visual C++, I have to do the same thing over and over: go to project settings, then add the libraries (opengl32.lib, glut32.lib, glu32.lib) to the list of libraries. Is there any to make this permanent? Meaning that the library setting will be like that for all other projects?
Thanks
 

Glitchny

Diamond Member
Sep 4, 2002
5,679
1
0
i dont think so, it is a pain to do it everytime but its not that big a deal, takes like 30sec
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
In Visual Studio .NET, if you go under Tools / Options / Projects / VC++ Directories, change the "Show directories for:" dropdown to "Libraries" and add the path to your OpenGL lib files.

There's a similar dialog in VS 6.0, but I don't have that installed here. I'll check on my PC at work tomorrow morning.
 

vtqanh

Diamond Member
Jan 4, 2001
3,100
0
76
Originally posted by: MrChad
In Visual Studio .NET, if you go under Tools / Options / Projects / VC++ Directories, change the "Show directories for:" dropdown to "Libraries" and add the path to your OpenGL lib files.

There's a similar dialog in VS 6.0, but I don't have that installed here. I'll check on my PC at work tomorrow morning.

well, in VC++, it's still in Tools, Options, Projects... But that just point the linker to the directories that contain the libraries. But the linker also needs to know which libraries to include in the project, and then it will come to those directories to look for those libraries. There's a default option for every project telling the linker what libraries it should include. I just need to find out where that default setting is defined. Otherwise, I have to manually append those libraries to the list of the default ones.
 

HJB417

Senior member
Dec 31, 2000
763
0
0
I remember trying to do this several months ago when I was using ogl w/ vs.net
In vs.net, there are project templates (atl server, win32 project, mfc application, windows service, etc). so I tried to make one for opengl.
You do this by creating a "custom wizard". If you're not using vs.net, get w/ the times.