View Full Version : My Little and Important Problems

08-06-2002, 08:03 PM
Hi Guys,
as i am new to this open world of GL, i am still unable to create an openGL window(don't laugh at me), I tried to create the openGL window but every time i got Error:
Fatal Error c1010,

Please help me out, if i will create my window then i can go on in programming.
Tell me the whole procedure to initialize the openGL windows on windows98.

thakns for your time


08-06-2002, 09:27 PM
There are a lot of ways you can do it. You can use Win32 API (ick), MFC, or something like SDL or glut. I recommend using SDL.

Check out www.libsdl.org. (http://www.libsdl.org.)

08-07-2002, 01:35 AM
It mean you have problem with header file. Check to correct header location.
#include <gl\gl.h>
#include <gl\glu.h>

and link to gl library like this

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

do it at the top of your source code.

08-08-2002, 07:08 PM
A quick google search resolves to http://www.msoe.edu/eecs/cese/resources/cppbuild/msvcmfc/mfc_err.htm.

In short, the article says that some precompiled headers are not being correctly handled. The short solution is to add

#include "stdafx.h"

on your code, but you can choose too not to use precompiled headers from the settings menu.