Advertisement

including openGL

Started by February 22, 2001 01:09 PM
1 comment, last by Cornholio 23 years, 9 months ago
I''m really sorry to ask such a stupid question but... could someone tell me what to do if I need the OpenGL types and funtions in two (or more) different .cpp files? If I try to #include gl.h in two files the compiler (vc++ 6) start complaining like this c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing '';'' before type ''void'' c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: ''WINGDIAPI'' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found I''m tired of putting all my gl related code in only one file Please Help If You Can Cheers
you need to include windows.h
Advertisement
Cornholio? That name sounds familiar... Are your by any chance danish?

This topic is closed to new replies.

Advertisement