The GL.H file for C++ compiler

Started by
24 comments, last by HunterX 20 years, 5 months ago
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]
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Advertisement
Yes, I have a int main(void) function...
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?
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
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]
Try
extern "C" int main(int argc, char ** argv)
, it might work

This topic is closed to new replies.

Advertisement