[Scummvm-devel] Re: [Scummvm-cvs-logs] CVS: scummvm/common file.cpp,1.39,1.40

Travis Howell kirben at optusnet.com.au
Fri Aug 1 06:55:10 CEST 2003


Max Horn wrote:
> Am Freitag, 01.08.03 um 15:16 Uhr schrieb Travis Howell:
>
>> Update of /cvsroot/scummvm/scummvm/common
>> In directory sc8-pr-cvs1:/tmp/cvs-serv15035/common
>>
>> Modified Files:
>> file.cpp
>> Log Message:
>>
>> mingw compile broken when include order was changed
>>
>>
> How was it broken? The order should not have any effect in this case,
> if it does, something else is awry. Certainly it would be better to
> fixx the problem, than to keep covering it up...

In this case mingw wants the 'common/file.h' include to be first or I get
the following error:
In file included from common/file.cpp:22:
common/engine.h:90: syntax error before `(' token
common/engine.h:95: syntax error before `(' token
common/engine.h:97: syntax error before `(' token
common/file.cpp: In member function `bool File::open(const char*, const
char*,
   int, unsigned char)':
common/file.cpp:119: `debug' undeclared (first use this function)
common/file.cpp:119: (Each undeclared identifier is reported only once for
each
   function it appears in.)
common/file.cpp:142: `warning' undeclared (first use this function)
common/file.cpp: In member function `bool File::eof()':
common/file.cpp:177: `error' undeclared (first use this function)
make: *** [common/file.o] Error 1

I'm getting a compile problem with common/engine.cpp too:
common/engine.cpp: In function `void checkHeap()':
common/engine.cpp:271: `_heapchk' undeclared (first use this function)
common/engine.cpp:271: (Each undeclared identifier is reported only once for
   each function it appears in.)
make: *** [common/engine.o] Error 1

The extra code in checkHeap() should really be made Microsoft Visual C++
only though.





More information about the Scummvm-devel mailing list