View Full Version : Can not find glaux.h

04-03-2010, 02:37 PM
Hello, I try to compile code, that beggins with:


with command:

cc -o test test.c -I/usr/local/include -L/usr/local/lib -lMesaaux -lMesatk -lMesaGL -lXext -lX11 -lm

But one of errors I got is:

test.c:3:18: error: glaux.h: No such file or directory

Then I try:

yum provides glaux.h

but yum find anything.
Before all I installed Mesa with:

yum install mesa*

So, can anyone tell me from where I can get the header file?

Thank you for ahead.

Alfonse Reinheart
04-03-2010, 02:42 PM
glaux is a very, very old Windows-only header. You shouldn't use it with Mesa. You shouldn't use it with Windows for that matter.

Don't use it.

04-03-2010, 03:06 PM
Thank you very much for replay.
I excluded glaux.h from code, but now when I try to compile I get error about libraries (-l*). When I try to compile without them I get errors like:

test.c:(.text+0x2a): undefined reference to `glClearColor'

Can you tell me from where I can know which libraries I need?

04-03-2010, 04:15 PM
try with only these libs first : -lGL -lm

04-04-2010, 02:19 AM
Thank you, it is compiled with this two libs :)