Jyotsna
Jyotsna

Reputation: 4441

how to link OpenGL with VC++

I am developing one game where I want to add OpenGL framework with VC++ 2005 express edition. But I dont know how to add OpenGL framework with VC++. So can any one guide me for this.

Please explain me in detail. Thanks in advance

Upvotes: 0

Views: 823

Answers (2)

DHamrick
DHamrick

Reputation: 8488

You need to have a windowing toolkit before you can use opengl. GLUT is the easiest to learn/use for begining with opengl. Here is a guide to download GLUT and how to create an opengl project.

http://www.cecs.csulb.edu/~pnguyen/Using%20OpenGL%20in%20Visual%20Studio%202005.htm

You should have all of the opengl libs and headers already so you should only need to download glut.

Upvotes: 1

ravuya
ravuya

Reputation: 8756

You must link with opengl32.lib and potentially glu32.lib. The headers should already be provided with the Platform SDK (which needs to be downloaded separately, if you don't already have it).

If possible, you should consider upgrading to VS2008 Express, since it's free.

Upvotes: 1

Related Questions