0

I had been studying OpenGL in DevCPP all the time. Using DevCPP you link OpenGL library files libopengl32.a and libglu32.a adjusting project options. But I dont know how to do this in VC++.
Can you help me what files to link and how to link in Visual Studio 2005 for OpenGL?

2
Contributors
5
Replies
6
Views
11 Years
Discussion Span
Last Post by jwenting
0

It is well explained in MSDN :

To add .lib files as linker input in the development environment

Open the project's Property Pages dialog box. For details, see -Setting Visual C++ Project Properties.
-Click the Linker folder.
-Click the Input property page.
-Modify the Additional Dependencies property.
To programmatically add .lib files as linker input

Thanks everybody!

0

And also,

#pragma comment(lib, "opengl32.lib");
#pragma comment(lib, "glu32.lib");

may be added at the beginning of the program code as an alternative.

0

yes, but that makes your sources compiler dependent, something you should if possible try to avoid ;)
Better let the linker config handle such details.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.