Skip to main content
gamedev.net
🔒 Locked

Strange

Started by Dark Ronin 2 replies 200+ views
Original Post
Dark Ronin
Dark Ronin
I''ve reduced all my programming errors to these, they seem obvious but since i include gl.h in the begining, there isnt a place for ";" I think it may have to do with the single header inclusion or something. Also, im not so up on the theory of multiple .cpp files and linking them together, so any tips would be appreciated. Here are the errors: 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
MelvinElvin
MelvinElvin
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\gl\gl.h(1152) : error C2501: ''WINGDIAPI'' : missing storage-class or type specifiers

this error is usually generated because you''ve forgotten to include windows.h (and is also responsible for the 3rd error and probably the first).

you have to include the windows.h file before you include gl.h
GSACP: GameDev Society Against Crap PostingTo join: Put these lines in your signature and don't post crap!
Qw3r7yU10p!
Qw3r7yU10p!
the line before the first error should show you which file is being compiled.

look in that file at the header that is included before the gl.h header

the class definition in there will need a '';'' at the end of it

ie

class duff
{
public:
duff();
}; <---- don''t forget the semi-colon
Neophyte
Neophyte
You''ll need to include windows.h before you include gl.h.

-Neophyte

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.