PDA

View Full Version : compiling on windows



10-29-2004, 11:10 AM
How may I compile properly OpenGL source code.

for compileing the code I have
g++ -c main.c

then linking is where I get the problems

ld -o program.exe main.o -LE:\Windows\devcpp\lib\ -lopengl32 -lglu32 -lglut32 -lglaux32

I get undefined reference to [gl related command].

Thanks in advance!

mikael_aronsson
11-01-2004, 04:12 AM
Hi !

Could you be more specific about the linking errors ?

Do you have a glaux library ?

Check the linking order, gcc is picky about the order you put the libraries.

Mikael