Good night dear friends;
i am writing OPenGL codes and want to compile them by GCC but i can not compile them.When i write the command to compile the program like that;
Code:
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <stdlib.h>
THE CODES HERE(I assure you,the code blocks are ok and there is nothing wrong with them)
....
...
..
.
and i write
Code:
gcc openglprog.c -o opengl
but it returns with some errors and the compiler says
/temp....
/temp....
..
returned with collect ld 1(this is not thye exact error
.Please someone could help me about compiling OpenGL programs with gcc ,and something to add, i cannot compile my codes that are written by using gtk libs .How can i compile them?Are there any tips you know?
Thank you