i wanted to ask how can i compile opengl with mingw. (in linux)
For c++ files i know i can do this :
i586-mingw32msvc-g++ main.cpp -o main.exe
and its ok.
If i try it with opengl project ,it gives me errors ,like :
glutInit’ was not declared in this scope etc..
I copied glut.h ,glx.h,freeglut.h in the /usr/i586-mingw32msvc/include/GL
but nothing happend.
you will need to link GLUT.
The line above assumes glut is installed an in the compiler search path. Try that and let us know how that works out for you.