My Little and Important Problems

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


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

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.

A quick google search resolves to

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.