Re: Annoying compiler error ? by Ben
Ben
Thu Oct 26 08:52:48 CDT 2006
"Vilius" <v_mockunas@delfi.lt.removespam> wrote in message
news:%23HBRqqD%23GHA.1172@TK2MSFTNGP03.phx.gbl...
>I forgot semicolon after last class definition in class header file -
> it's really unusual to get that kind of error because of that.
>
Without semicolon, the compiler is ready to declare a variable, which would
not be considered the "file scope" state. So it generates an error pointing
to the PCH, which is probably better than the alternative which would be a
syntax error in every .cpp file on the first line following the #include
"stdafx.h"
>
> "Bruno van Dooren [MVP VC++]" <bruno_nos_pam_van_dooren@hotmail.com> wrote
> in message news:6F2E2D00-E73A-4DE8-9033-3508BD9E3ABB@microsoft.com...
>>> never mind - solved
>>
>> If you post the above line, please include the solution as well.
>> That way we all learn something.
>>
>> --
>> Kind regards,
>> Bruno.
>> bruno_nos_pam_van_dooren@hotmail.com
>> Remove only "_nos_pam"
>
>