Advertisement

Error Message

Started by January 04, 2003 09:55 PM
6 comments, last by Tazel 21 years, 10 months ago
c:\program files\microsoft visual studio\vc98\include\winnt.h(106) : error C2144: syntax error : missing '';'' before type ''void'' c:\program files\microsoft visual studio\vc98\include\winnt.h(106) : error C2501: ''fas'' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\winnt.h(106) : fatal error C1004: unexpected end of file found What does this mean? I''m trying to run a win32 program that has worked before with no problems. I changed nothing since then and now there''s all this winnt.h crap going on. Please help! tcache Contact Me ----------- Games don''t affect kids. If Pac-man had affected us, we''d all be sitting in darkened rooms munching pills and listening to repetitive electronic music. -- Kristian Wilson(Nintendo Inc., 1989)
tcacheContact Me-----------AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)
heh, Look to where your including "winnt.h"...

The file before that, your missing a '';''

#include <myfile>
#include <winnt.h>

myfile is the problem, and it will be at the end of myfile as well...

just a guess
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn
Advertisement
I have only included Windows.h.


tcache
Contact Me
-----------
Games don't affect kids. If Pac-man had affected us, we'd all be sitting in darkened rooms munching pills and
listening to repetitive electronic music. -- Kristian Wilson(Nintendo Inc., 1989)

[edited by - Tazel on January 5, 2003 9:41:26 PM]
tcacheContact Me-----------AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)
Anybody?



tcache
Contact Me
-----------
AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)
tcacheContact Me-----------AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)
It really does look like something is wrong before the #include of winnt.h. (This is probably included inside by windows.h.) Are you absolutely positive that there is no erroneous code before your #include <windows.h>? Missing semicolon, closing brace, or similar ...?
I''m sure. This happens also when I try to execute the windows Hello World that''s already written by Microsoft. So it''s not really the program''s problem, I''m pretty sure. Does windows.h even call winnt.h?


tcache
Contact Me
-----------
AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)
tcacheContact Me-----------AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)
Advertisement
Just to check, the code around there should look like this (Assuming MSVC 6.0):

    #if (_MSC_VER >= 1200)#define DECLSPEC_NORETURN __declspec(noreturn)#else#define DECLSPEC_NORETURN#endif    typedef void *PVOID;typedef void * POINTER_64 PVOID64;    


I think you've probably inadvertantly edited Winnt.h. Can you post line 106? The "'fas' : missing storage-class or type specifiers" error looks to me like you've typed something in.

Edit: Damn forum messes up the preprocessor directives in the source tags...



[edited by - Evil Bill on January 6, 2003 9:43:47 PM]
Member of the Unban Mindwipe Society (UMWS)
It was exactly like that. Well, i''ve fixed it though. I completely uninstalled and then installed which seemed to fix it.


tcache
Contact Me
-----------
AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)
tcacheContact Me-----------AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)

This topic is closed to new replies.

Advertisement