Do you have a main() function...?
--
AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
[Project site] [Blog] [RSS] [Browse the source] [IRC channel]
The GL.H file for C++ compiler
quote:Original post by HunterX
Yes, I have a int main(void) function...
Well, your compiler is under the distinct impression that you don''t....sure you included the file in the project?
quote:Original post by HunterX
Yes, I have a int main(void) function...
int main(int argc, char **argv)
Try using this in place of your current int main(void).
SDL uses its own gl.h file. it should be in your SDL directory the include directory of your compiler. the line to include it is:
#include "sdl/sdl_opengl.h"
Instead of:
#include "gl/gl.h"
*I think*
Also goto the SDL web site and download the manual http://www.libsdl.org/docs.php it has a tutorial on how to set OGL up with SDL.
[edited by - sckoobs on November 11, 2003 11:39:19 AM]
#include "sdl/sdl_opengl.h"
Instead of:
#include "gl/gl.h"
*I think*
Also goto the SDL web site and download the manual http://www.libsdl.org/docs.php it has a tutorial on how to set OGL up with SDL.
[edited by - sckoobs on November 11, 2003 11:39:19 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement