• Welcome to Valhalla Legends Archive.
 

What is going on with my header files?

Started by shout, November 21, 2005, 09:03 PM

Previous topic - Next topic

shout

I'm working on a project that uses math.h, and I compiled, it worked fine. I changed where a static control was on a window, and BAM! This:


c:\Program Files\...\Vc7\include\math.h(36): warning C4518: 'extern ' : storage-class or type specifier(s) unexpected here; ignored
c:\Program Files\...\Vc7\include\math.h(36): error C2143: syntax error : missing ';' before 'string'
c:\Program Files\...\Vc7\include\math.h(36): error C2143: syntax error : missing ';' before '{'
c:\Program Files\...\Vc7\include\math.h(36): error C2447: '{' : missing function header (old-style formal list?)


Then it complaines about all the functions declared in it.

The offending line:

extern "C" {


What the hell happened? I'm sure I've never opened or changed it, it opened itself with these errors.

Edit: It randomly decided to fix itself, but now it is doing in on assert.h on the same statement. ???

Kp

Are you using precompiled headers?  I've seen a great many problems in the past brought about by corrupted precompiled headers.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

shout

Quote from: Kp on November 22, 2005, 11:08 PM
Are you using precompiled headers? I've seen a great many problems in the past brought about by corrupted precompiled headers.

Ah. Now that I have disabled them, things are working fine.