Hello!
I wonder if you could help me in my problem. I’m getting some errors while compiling OGL program and I have no idea where do they come from. I’ve tried everything and still it didn’t bring any results. I have a source file and a header file. I wanted to put all includes and globals into the header but i get the same erros. It look like that :
// main.h
#include <windows.h>
#include <math.h>
#include <stdio.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glaux.h>
#include <iostream.h>
#pragma comment(lib, “Winmm.lib”)
#pragma comment(lib, “OpenGL32.lib”)
#pragma comment(lib, “Glu32.lib”)
extern HWND hWnd = NULL;
extern HINSTANCE hInstance = NULL;
extern HDC hDc = NULL;
extern HRC hRc = NULL;
main.h(37) : error C2146: syntax error : missing ‘;’ before identifier ‘hRc’
main.h(37) : fatal error C1004: unexpected end of file found
Let me know if you find anything! I would really appreciate any help.
Thanks