Can not find glaux.h

Hello, I try to compile code, that beggins with:


#include<stdlib.h>
#include<GL/gl.h>
#include<glaux.h>

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.

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.

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?

try with only these libs first : -lGL -lm

Thank you, it is compiled with this two libs :slight_smile: