View Full Version : No gluOrtho2D?!

12-30-2000, 01:15 AM
I'm trying to learn OpenGL and I'm using dev-c++ as my compiler. Everytime I compile something the linker comes up with this message:

c:\my docs\file2.o(.text+0x11a):file2.cpp: undefined reference to `gluOrtho2D@32'

Can someone give me an alternitive?

12-30-2000, 02:06 AM
The message is about a link error. You are not linking to libglu32.a from a prompt would it be something like:
gcc mycode.c -mwindows -lglu32 -lopengl32

12-30-2000, 03:23 AM
I already had that ( -opengl32 -glu32 ) inserted in the [project options/further object files or linker] list.
Still doesn't work.