Advertisement

HELP: compiling opengl code

Started by June 06, 2003 09:47 PM
1 comment, last by kevingpo 21 years, 8 months ago
Ok. I don''t know where to post but this seems to be the closest related forum. I need help compiling some program that uses opengl. I use BloodShed Dev-C++ and SDL (www.libsdl.com). I can compile a project fine until it starts to link. It throws up errors of lots of opengl commands that can''t be found - like if I need opengl32.lib or something. I did a search on my PC and found opengl32.dll, but not opengl32.lib. So I download my graphics drivers (www.nvidia.com) for my GeForce3 card. Still no sign of opengl32.lib. Please help.
Dev-c++ uses "libopengl32.a" instead of "opengl32.lib".

You should have that in your library dir, just add -lopengl32 to your linker line.
Advertisement
I was doing the first tutorial and couldn''t get the code to compile with Dev-C++ v4.

I had to add ''-lopengl32 -lglu32 -lgdi32'' to the linker options.

Your post pointed me in the right direction Travis. Cheers.

This topic is closed to new replies.

Advertisement