I want to program somthing using opengl es , i search software center for anything related
and i found libgles1-mesa-dev , then i wrote a simple main program and included :
#include <GLES/gl.h>
#include <GLES/glext.h>
and it compiles , but if i try to use an opengl es function it says undefined reference . (meaning the include without using functions compiles , but after writing a function it gives that error)
i compiled using simple
gcc ./*.c -o xxx
how can i use this library to program opengl es 1.x ?
or opengl es in general ?
i did this and it worked :
those steps on ubuntu 13.04 64bit , because the "-L/usr/lib/x86_64-linux-gnu/"
changes depending on your distro.
You should include the flag of gles and the library.