[Scummvm-devel] Header files.
Nicolas Noble
pixel at nobis-crew.org
Sun Dec 21 10:38:02 CET 2003
> "LavosSpawn" <LavosSpawn at scummvm.org> writes:
> >> >From memory, it must be the very first include.
> >>
> >>
> >> Just out of curiosity, what will happen if it isn't?
> >>
> >
> > It simply won't compile.
>
> That's pure weirdness to me. So you get a compiler error or something?
> Saying what? "<stdafx.h> not included first error on line 7"? :-)
Actually, M$VC uses that header in order to precompile the header files
(you know, all the templates and inlines). So it has a strange behavior
concerning this file. You actually have to include it before any other
include (not on the "first" line though)
BUT, getting completely rid of stdafx.h is possible. Just have to tweak a
bit the IDE, and it will be able to completely work without any evil
stdafx.h. The compilation time will be quite increased though.
-- Nicolas
More information about the Scummvm-devel
mailing list