PDA

View Full Version : No gluOrtho2D?!



riisXIV
12-30-2000, 02: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, 03: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

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