[Scummvm-tracker] [ScummVM :: Bugs] #12421: BUILD: Scummvm Fails to Compile with GCC v10.3.0 (was: Can not compile scummvm it seems with gcc 10.3.0)
ScummVM :: Bugs
trac at scummvm.org
Sat May 1 04:24:10 UTC 2021
#12421: BUILD: Scummvm Fails to Compile with GCC v10.3.0
-------------------------+---------------------
Reporter: rubyFeedback | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Ports
Version: | Resolution:
Keywords: | Game:
-------------------------+---------------------
Changes (by digitall):
* keywords: fails to compile =>
* component: --Unset-- => Ports
* summary: Can not compile scummvm it seems with gcc 10.3.0 => BUILD:
Scummvm Fails to Compile with GCC v10.3.0
Old description:
> Not sure what the error is ...
>
>
> ./configure --prefix=/home/Programs/Scummvm/2.2.0/
>
> Running ScummVM configure...
> Looking for C++ compiler... g++
> Checking for compiler version... 10.3.0, ok
> Building as C++11... no
> Checking best debug mode... -g + split DWARF + Gold + var tracking
> Checking for whether C++ compiler accepts -Wglobal-constructors... no
> Checking for whether C++ compiler accepts -Wno-undefined-var-template...
> no
> Checking for whether C++ compiler accepts -Wno-pragma-pack... no
> Checking endianness... /usr/bin/ld.gold: warning:
> /home/Programs/Gcc/10.3.0/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtbegin.o:
> unknown program property type 0xc0010002 in .note.gnu.property section
> /usr/bin/ld.gold: warning: /home/Programs/Gcc/10.3.0/lib/gcc/x86_64-pc-
> linux-gnu/10.3.0/crtbegin.o: unknown program property type 0xc0010001 in
> .note.gnu.property section
> /usr/bin/ld.gold: warning: /home/Temp/cchxxKUI.o: unknown program
> property type 0xc0010002 in .note.gnu.property section
> /usr/bin/ld.gold: warning: /home/Temp/cchxxKUI.o: unknown program
> property type 0xc0010001 in .note.gnu.property section
> /usr/bin/ld.gold: warning: /home/Programs/Gcc/10.3.0/lib/gcc/x86_64-pc-
> linux-gnu/10.3.0/crtend.o: unknown program property type 0xc0010002 in
> .note.gnu.property section
> /usr/bin/ld.gold: warning: /home/Programs/Gcc/10.3.0/lib/gcc/x86_64-pc-
> linux-gnu/10.3.0/crtend.o: unknown program property type 0xc0010001 in
> .note.gnu.property section
> little
> Checking 64-bitness... yes
> Type with 1 byte... char
> Type with 2 bytes... short
> Type with 4 bytes... int
> Type with 8 bytes... long
> Alignment required... no
> Checking host CPU architecture... x86_64
> Checking hosttype... linux-gnu
> Checking for pkg-config... yes
> Looking for sdl-config... /usr/bin//sdl2-config
> Checking for SDL... yes
> Checking for SDL_Net... no
> Checking if host is POSIX compliant... yes
> Checking if posix_spawn is supported... yes
> Checking whether to have a verbose build... no
> Checking whether building plugins was requested... no
> Checking for Ogg... yes
> Checking for TTS libraries... no
> Checking for Vorbis... yes
> Checking for Tremor... no (Vorbis/Tremor support is mutually exclusive)
> Checking for OPL2LPT... no
> Checking for FLAC >= 1.0.1... yes
> Checking for MAD... yes
> Checking for ALSA >= 0.9... yes
> Checking for libjpeg >= v6b... yes
> Checking for PNG >= 1.2.8... yes
> Checking for libtheoradec >= 1.0... yes
> Checking for libfaad... no
> Checking for SEQ MIDI... yes
> Checking for sndio... no
> Checking for TiMidity... yes
> Checking for zlib... yes
> Checking for libmpeg2 >= 0.4.0... no
> Checking for liba52... No accelerated IMDCT transform found
> yes
> Looking for curl-config... /usr/bin//curl-config
> Checking for libcurl... yes
> Cloud integration... servers
> Checking for FluidSynth... no
> Checking for readline... skipping (text console disabled)
> Checking for libunity... no
> Checking for gtk... yes
> Checking for FreeType2... yes
> Checking for OpenGL... yes (runtime detection)
> Checking whether iconv.h is present... yes
> Checking whether iconv needs linking against libiconv... no
> Checking signature of iconv... iconv_t, char **, size_t *, char **,
> size_t *
> Checking for iconv... yes
> Checking for Linux CD-ROM... yes
> Checking for FriBidi... yes
> Test C++11 compatibility during compilation... no
> Checking for Discord RPC... no
> Building translation support... yes (with runtime language detection)
> Building taskbar integration support... no
> Building system dialogs support... gtk
> Building text-to-speech support... no
> Building Bink video support... yes
> Building updates support... no
> Enabling Address Sanitizer... no
> Enabling Thread Sanitizer... no
> Backend... sdl (2.0.12), 16bit color, high resolution, savegame
> timestamp, HQ scalers, MT-32 emulator, Lua, Nuked OPL emulator, cloud
>
> Engines (builtin):
> SCUMM [all games]
> Access
> ADL
> AGI
> AGOS [all games]
> Beavis and Butthead in Virtual Stupidity
> Blade Runner
> CGE
> CGE2
> Cinematique evo 1
> Magic Composer
> Cinematique evo 2
> Cryo Omni3D games [all games]
> Dragon History
> Blazing Dragons
> Drascula: The Vampire Strikes Back
> Dreamweb
> Full Pipe
> Glk Interactive Fiction games
> UFOs
> Gobli*ns
> The Griffon Legend
> Groovie [7th Guest]
> Hyperspace Delivery Boy!
> Hopkins FBI
> Hugo Trilogy
> Illusions Engine
> Kyra [all games]
> Labyrinth of Time
> Lure of the Temptress
> MADE
> MADS
> Mohawk [Living Books] [Myst] [Myst ME] [Riven: The Sequel to Myst]
> Mortevielle
> Neverhood
> Parallaction
> The Journeyman Project: Pegasus Prime
> Plumbers Don't Wear Ties
> The Prince and The Coward
> Flight of the Amazon Queen
> SAGA [ITE] [IHNM]
> SCI [all games]
> The Lost Files of Sherlock Holmes
> Beneath a Steel Sky
> Mission Supernova
> Broken Sword
> Broken Sword II
> Broken Sword 2.5
> Teen Agent
> Tinsel
> Starship Titanic
> 3 Skulls of the Toltecs
> Tony Tough and the Night of Roasted Moths
> Toonstruck
> Touche: The Adventures of the Fifth Musketeer
> TsAGE
> Bud Tucker in Double Trouble
> Ultima
> Voyeur
> Wintermute [all games]
> World of Xeen
> Z-Vision
>
> Engines Skipped:
> Lord Avalot d'Argent
> Chewy: Esc from F5
> Lost Eden
> Macromedia Director
> Dungeon Master
> Groovie [Groovie 2 games]
> Kingdom: The Far Reaches
> The Last Express
> Lilliput
> MacVenture
> Mohawk [Where in Time is Carmen Sandiego?]
> Mutation of JB
> Red Comrades
> Pink Panther
> SAGA [SAGA 2 games]
> Sludge
> Star Trek 25th Anniversary/Judgment Rites
> TestBed: the Testing framework
> WAGE
>
> Creating config.h
> Creating config.mk
> Creating engines/engines.mk
> Creating engines/plugins_table.h
>
> make
>
> fatal: not a git repository (or any of the parent directories): .git
> C++ backends/platform/sdl/sdl.o
> In file included from ./common/stream.h:26,
> from ./common/savefile.h:28,
> from ./gui/EventRecorder.h:29,
> from backends/platform/sdl/sdl.cpp:27:
> ./common/endian.h:49:3: error: #error No endianness defined
> 49 | # error No endianness defined
> | ^~~~~
> In file included from ./common/util.h:27,
> from ./common/algorithm.h:28,
> from ./common/array.h:27,
> from ./common/system.h:28,
> from ./backends/base-backend.h:26,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/str.h:51:15: error: ‘uint32’ does not name a type; did you mean
> ‘Uint32’?
> 51 | static const uint32 npos = 0xFFFFFFFF;
> | ^~~~~~
> | Uint32
> ./common/str.h:77:15: error: ‘uint32’ does not name a type; did you mean
> ‘Uint32’?
> 77 | static const uint32 _builtinCapacity = 32 - sizeof(uint32) -
> sizeof(char *);
> | ^~~~~~
> | Uint32
> ./common/str.h:84:2: error: ‘uint32’ does not name a type; did you mean
> ‘Uint32’?
> 84 | uint32 _size;
> | ^~~~~~
> | Uint32
> ./common/str.h:97:17: error: ‘_builtinCapacity’ was not declared in this
> scope; did you mean ‘__builtin_parity’?
> 97 | char _storage[_builtinCapacity];
> | ^~~~~~~~~~~~~~~~
> | __builtin_parity
> ./common/str.h:104:4: error: ‘uint32’ does not name a type; did you mean
> ‘Uint32’?
> 104 | uint32 _capacity;
> | ^~~~~~
> | Uint32
> ./common/str.h:120:26: error: ‘uint32’ has not been declared
> 120 | String(const char *str, uint32 len);
> | ^~~~~~
> ./common/str.h:177:2: error: ‘uint64’ does not name a type; did you mean
> ‘Uint64’?
> 177 | uint64 asUint64() const;
> | ^~~~~~
> | Uint64
> ./common/str.h:224:18: error: ‘uint32’ has not been declared
> 224 | void deleteChar(uint32 p);
> | ^~~~~~
> ./common/str.h:227:13: error: ‘uint32’ has not been declared
> 227 | void erase(uint32 p, uint32 len = npos);
> | ^~~~~~
> ./common/str.h:227:23: error: ‘uint32’ has not been declared
> 227 | void erase(uint32 p, uint32 len = npos);
> | ^~~~~~
> ./common/str.h:233:23: error: ‘uint32’ has not been declared
> 233 | void setChar(char c, uint32 p);
> | ^~~~~~
> ./common/str.h:236:26: error: ‘uint32’ has not been declared
> 236 | void insertChar(char c, uint32 p);
> | ^~~~~~
> ./common/str.h:262:22: error: ‘uint32’ does not name a type; did you mean
> ‘Uint32’?
> 262 | void wordWrap(const uint32 maxLength);
> | ^~~~~~
> | Uint32
> ./common/str.h:281:15: error: ‘uint32’ has not been declared
> 281 | void replace(uint32 pos, uint32 count, const String &str);
> | ^~~~~~
> ./common/str.h:281:27: error: ‘uint32’ has not been declared
> 281 | void replace(uint32 pos, uint32 count, const String &str);
> | ^~~~~~
> ./common/str.h:283:15: error: ‘uint32’ has not been declared
> 283 | void replace(uint32 pos, uint32 count, const char *str);
> | ^~~~~~
> ./common/str.h:283:27: error: ‘uint32’ has not been declared
> 283 | void replace(uint32 pos, uint32 count, const char *str);
> | ^~~~~~
> ./common/str.h:290:15: error: ‘uint32’ has not been declared
> 290 | void replace(uint32 posOri, uint32 countOri, const String &str,
> | ^~~~~~
> ./common/str.h:290:30: error: ‘uint32’ has not been declared
> 290 | void replace(uint32 posOri, uint32 countOri, const String &str,
> | ^~~~~~
> ./common/str.h:291:6: error: ‘uint32’ has not been declared
> 291 | uint32 posDest, uint32 countDest);
> | ^~~~~~
> ./common/str.h:291:22: error: ‘uint32’ has not been declared
> 291 | uint32 posDest, uint32 countDest);
> | ^~~~~~
> ./common/str.h:294:15: error: ‘uint32’ has not been declared
> 294 | void replace(uint32 posOri, uint32 countOri, const char *str,
> | ^~~~~~
> ./common/str.h:294:30: error: ‘uint32’ has not been declared
> 294 | void replace(uint32 posOri, uint32 countOri, const char *str,
> | ^~~~~~
> ./common/str.h:295:6: error: ‘uint32’ has not been declared
> 295 | uint32 posDest, uint32 countDest);
> | ^~~~~~
> ./common/str.h:295:22: error: ‘uint32’ has not been declared
> 295 | uint32 posDest, uint32 countDest);
> | ^~~~~~
> ./common/str.h:317:2: error: ‘uint32’ does not name a type; did you mean
> ‘Uint32’?
> 317 | uint32 find(const String &str, uint32 pos = 0) const;
> | ^~~~~~
> | Uint32
> ./common/str.h:396:22: error: ‘uint32’ has not been declared
> 396 | void ensureCapacity(uint32 new_size, bool keep_old);
> | ^~~~~~
> ./common/str.h:399:37: error: ‘uint32’ has not been declared
> 399 | void initWithCStr(const char *str, uint32 len);
> | ^~~~~~
> ./common/str.h:227:36: error: ‘npos’ was not declared in this scope
> 227 | void erase(uint32 p, uint32 len = npos);
> | ^~~~
> ./common/str.h:326:36: error: ‘npos’ was not declared in this scope
> 326 | size_t rfind(char c, size_t pos = npos) const;
> | ^~~~
> ./common/str.h:338:41: error: ‘npos’ was not declared in this scope
> 338 | size_t findLastOf(char c, size_t pos = npos) const;
> | ^~~~
> ./common/str.h:341:52: error: ‘npos’ was not declared in this scope
> 341 | size_t findLastOf(const char *chars, size_t pos = npos) const;
> | ^~~~
> ./common/str.h:342:54: error: ‘npos’ was not declared in this scope
> 342 | size_t findLastOf(const String &chars, size_t pos = npos) const
> {
> | ^~~~
> ./common/str.h:365:45: error: ‘npos’ was not declared in this scope
> 365 | String substr(size_t pos = 0, size_t len = npos) const;
> | ^~~~
> ./common/str.h: In member function ‘bool
> Common::String::isStorageIntern() const’:
> ./common/str.h:109:18: error: ‘_storage’ was not declared in this scope
> 109 | return _str == _storage;
> | ^~~~~~~~
> ./common/str.h: In constructor ‘Common::String::String()’:
> ./common/str.h:114:13: error: class ‘Common::String’ does not have any
> field named ‘_size’
> 114 | String() : _size(0), _str(_storage) { _storage[0] = 0; }
> | ^~~~~
> ./common/str.h:114:28: error: ‘_storage’ was not declared in this scope
> 114 | String() : _size(0), _str(_storage) { _storage[0] = 0; }
> | ^~~~~~~~
> ./common/str.h: In member function ‘uint Common::String::size() const’:
> ./common/str.h:209:44: error: ‘_size’ was not declared in this scope; did
> you mean ‘size’?
> 209 | inline uint size() const { return _size; }
> | ^~~~~
> | size
> ./common/str.h: In member function ‘bool Common::String::empty() const’:
> ./common/str.h:211:38: error: ‘_size’ was not declared in this scope; did
> you mean ‘size’?
> 211 | inline bool empty() const { return (_size == 0); }
> | ^~~~~
> | size
> ./common/str.h: In member function ‘char Common::String::firstChar()
> const’:
> ./common/str.h:212:38: error: ‘_size’ was not declared in this scope; did
> you mean ‘size’?
> 212 | char firstChar() const { return (_size > 0) ? _str[0] : 0; }
> | ^~~~~
> | size
> ./common/str.h: In member function ‘char Common::String::lastChar()
> const’:
> ./common/str.h:213:38: error: ‘_size’ was not declared in this scope; did
> you mean ‘size’?
> 213 | char lastChar() const { return (_size > 0) ? _str[_size - 1]
> : 0; }
> | ^~~~~
> | size
> In file included from ./common/scummsys.h:123,
> from ./backends/platform/sdl/sdl-sys.h:32,
> from ./backends/platform/sdl/sdl.h:26,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/str.h: In member function ‘char Common::String::operator[](int)
> const’:
> ./common/str.h:216:41: error: ‘_size’ was not declared in this scope; did
> you mean ‘size’?
> 216 | assert(_str && idx >= 0 && idx < (int)_size);
> | ^~~~~
> In file included from ./common/util.h:27,
> from ./common/algorithm.h:28,
> from ./common/array.h:27,
> from ./common/system.h:28,
> from ./backends/base-backend.h:26,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/str.h: At global scope:
> ./common/str.h:497:19: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 497 | String tag2string(uint32 tag);
> | ^~~~~~
> | Uint32
> In file included from ./common/algorithm.h:28,
> from ./common/array.h:27,
> from ./common/system.h:28,
> from ./backends/base-backend.h:26,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/util.h:109:27: error: ‘byte’ does not name a type
> 109 | extern void hexdump(const byte * data, int len, int bytesPerLine
> = 16, int startOffset = 0);
> | ^~~~
> ./common/util.h:244:38: error: ‘uint64’ was not declared in this scope;
> did you mean ‘Uint64’?
> 244 | Common::String getHumanReadableBytes(uint64 bytes, Common::String
> &unitsOut);
> | ^~~~~~
> | Uint64
> ./common/util.h:244:67: error: expected primary-expression before ‘&’
> token
> 244 | Common::String getHumanReadableBytes(uint64 bytes, Common::String
> &unitsOut);
> |
> ^
> ./common/util.h:244:68: error: ‘unitsOut’ was not declared in this scope
> 244 | Common::String getHumanReadableBytes(uint64 bytes, Common::String
> &unitsOut);
> |
> ^~~~~~~~
> In file included from ./common/system.h:30,
> from ./backends/base-backend.h:26,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./graphics/pixelformat.h:137:2: error: ‘byte’ does not name a type
> 137 | byte bytesPerPixel; /**< Number of bytes used in the pixel
> format. */
> | ^~~~
> ./graphics/pixelformat.h:139:2: error: ‘byte’ does not name a type
> 139 | byte rLoss, gLoss, bLoss, aLoss; /**< Precision loss of each
> color component. */
> | ^~~~
> ./graphics/pixelformat.h:140:2: error: ‘byte’ does not name a type
> 140 | byte rShift, gShift, bShift, aShift; /**< Binary left shift of
> each color component in the pixel value. */
> | ^~~~
> ./graphics/pixelformat.h:148:25: error: expected ‘)’ before
> ‘BytesPerPixel’
> 148 | inline PixelFormat(byte BytesPerPixel,
> | ~ ^~~~~~~~~~~~~~
> | )
> ./graphics/pixelformat.h:183:9: error: ‘uint32’ does not name a type; did
> you mean ‘Uint32’?
> 183 | inline uint32 RGBToColor(uint8 r, uint8 g, uint8 b) const {
> | ^~~~~~
> | Uint32
> ./graphics/pixelformat.h:191:9: error: ‘uint32’ does not name a type; did
> you mean ‘Uint32’?
> 191 | inline uint32 ARGBToColor(uint8 a, uint8 r, uint8 g, uint8 b)
> const {
> | ^~~~~~
> | Uint32
> ./graphics/pixelformat.h:199:25: error: ‘uint32’ has not been declared
> 199 | inline void colorToRGB(uint32 color, uint8 &r, uint8 &g, uint8
> &b) const {
> | ^~~~~~
> ./graphics/pixelformat.h:199:39: error: ‘uint8’ has not been declared
> 199 | inline void colorToRGB(uint32 color, uint8 &r, uint8 &g, uint8
> &b) const {
> | ^~~~~
> ./graphics/pixelformat.h:199:49: error: ‘uint8’ has not been declared
> 199 | inline void colorToRGB(uint32 color, uint8 &r, uint8 &g, uint8
> &b) const {
> | ^~~~~
> ./graphics/pixelformat.h:199:59: error: ‘uint8’ has not been declared
> 199 | inline void colorToRGB(uint32 color, uint8 &r, uint8 &g, uint8
> &b) const {
> | ^~~~~
> ./graphics/pixelformat.h:205:26: error: ‘uint32’ has not been declared
> 205 | inline void colorToARGB(uint32 color, uint8 &a, uint8 &r, uint8
> &g, uint8 &b) const {
> | ^~~~~~
> ./graphics/pixelformat.h:205:40: error: ‘uint8’ has not been declared
> 205 | inline void colorToARGB(uint32 color, uint8 &a, uint8 &r, uint8
> &g, uint8 &b) const {
> | ^~~~~
> ./graphics/pixelformat.h:205:50: error: ‘uint8’ has not been declared
> 205 | inline void colorToARGB(uint32 color, uint8 &a, uint8 &r, uint8
> &g, uint8 &b) const {
> | ^~~~~
> ./graphics/pixelformat.h:205:60: error: ‘uint8’ has not been declared
> 205 | inline void colorToARGB(uint32 color, uint8 &a, uint8 &r, uint8
> &g, uint8 &b) const {
> | ^~~~~
> ./graphics/pixelformat.h:205:70: error: ‘uint8’ has not been declared
> 205 | inline void colorToARGB(uint32 color, uint8 &a, uint8 &r, uint8
> &g, uint8 &b) const {
> |
> ^~~~~
> ./graphics/pixelformat.h:216:9: error: ‘byte’ does not name a type
> 216 | inline byte rBits() const {
> | ^~~~
> ./graphics/pixelformat.h:220:9: error: ‘byte’ does not name a type
> 220 | inline byte gBits() const {
> | ^~~~
> ./graphics/pixelformat.h:224:9: error: ‘byte’ does not name a type
> 224 | inline byte bBits() const {
> | ^~~~
> ./graphics/pixelformat.h:228:9: error: ‘byte’ does not name a type
> 228 | inline byte aBits() const {
> | ^~~~
> ./graphics/pixelformat.h:232:9: error: ‘byte’ does not name a type
> 232 | inline byte bpp() const {
> | ^~~~
> ./graphics/pixelformat.h: In constructor
> ‘Graphics::PixelFormat::PixelFormat()’:
> ./graphics/pixelformat.h:143:3: error: ‘bytesPerPixel’ was not declared
> in this scope
> 143 | bytesPerPixel =
> | ^~~~~~~~~~~~~
> ./graphics/pixelformat.h:144:3: error: ‘rLoss’ was not declared in this
> scope
> 144 | rLoss = gLoss = bLoss = aLoss =
> | ^~~~~
> ./graphics/pixelformat.h:144:11: error: ‘gLoss’ was not declared in this
> scope
> 144 | rLoss = gLoss = bLoss = aLoss =
> | ^~~~~
> ./graphics/pixelformat.h:144:19: error: ‘bLoss’ was not declared in this
> scope
> 144 | rLoss = gLoss = bLoss = aLoss =
> | ^~~~~
> ./graphics/pixelformat.h:144:27: error: ‘aLoss’ was not declared in this
> scope
> 144 | rLoss = gLoss = bLoss = aLoss =
> | ^~~~~
> ./graphics/pixelformat.h:145:3: error: ‘rShift’ was not declared in this
> scope
> 145 | rShift = gShift = bShift = aShift = 0;
> | ^~~~~~
> ./graphics/pixelformat.h:145:12: error: ‘gShift’ was not declared in this
> scope
> 145 | rShift = gShift = bShift = aShift = 0;
> | ^~~~~~
> ./graphics/pixelformat.h:145:21: error: ‘bShift’ was not declared in this
> scope
> 145 | rShift = gShift = bShift = aShift = 0;
> | ^~~~~~
> ./graphics/pixelformat.h:145:30: error: ‘aShift’ was not declared in this
> scope
> 145 | rShift = gShift = bShift = aShift = 0;
> | ^~~~~~
> ./graphics/pixelformat.h: In static member function ‘static
> Graphics::PixelFormat Graphics::PixelFormat::createFormatCLUT8()’:
> ./graphics/pixelformat.h:163:47: error: no matching function for call to
> ‘Graphics::PixelFormat::PixelFormat(int, int, int, int, int, int, int,
> int, int)’
> 163 | return PixelFormat(1, 0, 0, 0, 0, 0, 0, 0, 0);
> | ^
> ./graphics/pixelformat.h:142:9: note: candidate:
> ‘Graphics::PixelFormat::PixelFormat()’
> 142 | inline PixelFormat() {
> | ^~~~~~~~~~~
> ./graphics/pixelformat.h:142:9: note: candidate expects 0 arguments, 9
> provided
> ./graphics/pixelformat.h:136:8: note: candidate:
> ‘Graphics::PixelFormat::PixelFormat(const Graphics::PixelFormat&)’
> 136 | struct PixelFormat {
> | ^~~~~~~~~~~
> ./graphics/pixelformat.h:136:8: note: candidate expects 1 argument, 9
> provided
> ./graphics/pixelformat.h: In member function ‘bool
> Graphics::PixelFormat::operator==(const Graphics::PixelFormat&) const’:
> ./graphics/pixelformat.h:168:10: error: ‘bytesPerPixel’ was not declared
> in this scope
> 168 | return bytesPerPixel == fmt.bytesPerPixel &&
> | ^~~~~~~~~~~~~
> ./graphics/pixelformat.h:168:31: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘bytesPerPixel’
> 168 | return bytesPerPixel == fmt.bytesPerPixel &&
> | ^~~~~~~~~~~~~
> ./graphics/pixelformat.h:169:10: error: ‘rLoss’ was not declared in this
> scope
> 169 | rLoss == fmt.rLoss &&
> | ^~~~~
> ./graphics/pixelformat.h:169:23: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘rLoss’
> 169 | rLoss == fmt.rLoss &&
> | ^~~~~
> ./graphics/pixelformat.h:170:10: error: ‘gLoss’ was not declared in this
> scope
> 170 | gLoss == fmt.gLoss &&
> | ^~~~~
> ./graphics/pixelformat.h:170:23: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘gLoss’
> 170 | gLoss == fmt.gLoss &&
> | ^~~~~
> ./graphics/pixelformat.h:171:10: error: ‘bLoss’ was not declared in this
> scope
> 171 | bLoss == fmt.bLoss &&
> | ^~~~~
> ./graphics/pixelformat.h:171:23: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘bLoss’
> 171 | bLoss == fmt.bLoss &&
> | ^~~~~
> ./graphics/pixelformat.h:172:10: error: ‘aLoss’ was not declared in this
> scope
> 172 | aLoss == fmt.aLoss &&
> | ^~~~~
> ./graphics/pixelformat.h:172:23: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘aLoss’
> 172 | aLoss == fmt.aLoss &&
> | ^~~~~
> ./graphics/pixelformat.h:173:10: error: ‘rShift’ was not declared in this
> scope
> 173 | rShift == fmt.rShift &&
> | ^~~~~~
> ./graphics/pixelformat.h:173:24: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘rShift’
> 173 | rShift == fmt.rShift &&
> | ^~~~~~
> ./graphics/pixelformat.h:174:10: error: ‘gShift’ was not declared in this
> scope
> 174 | gShift == fmt.gShift &&
> | ^~~~~~
> ./graphics/pixelformat.h:174:24: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘gShift’
> 174 | gShift == fmt.gShift &&
> | ^~~~~~
> ./graphics/pixelformat.h:175:10: error: ‘bShift’ was not declared in this
> scope
> 175 | bShift == fmt.bShift &&
> | ^~~~~~
> ./graphics/pixelformat.h:175:24: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘bShift’
> 175 | bShift == fmt.bShift &&
> | ^~~~~~
> ./graphics/pixelformat.h:176:10: error: ‘aShift’ was not declared in this
> scope
> 176 | aShift == fmt.aShift;
> | ^~~~~~
> ./graphics/pixelformat.h:176:24: error: ‘const struct
> Graphics::PixelFormat’ has no member named ‘aShift’
> 176 | aShift == fmt.aShift;
> | ^~~~~~
> ./graphics/pixelformat.h: In member function ‘void
> Graphics::PixelFormat::colorToRGB(int, int&, int&, int&) const’:
> ./graphics/pixelformat.h:200:14: error: ‘rBits’ was not declared in this
> scope
> 200 | r = expand(rBits(), color >> rShift);
> | ^~~~~
> ./graphics/pixelformat.h:200:32: error: ‘rShift’ was not declared in this
> scope
> 200 | r = expand(rBits(), color >> rShift);
> | ^~~~~~
> ./graphics/pixelformat.h:201:14: error: ‘gBits’ was not declared in this
> scope
> 201 | g = expand(gBits(), color >> gShift);
> | ^~~~~
> ./graphics/pixelformat.h:201:32: error: ‘gShift’ was not declared in this
> scope
> 201 | g = expand(gBits(), color >> gShift);
> | ^~~~~~
> ./graphics/pixelformat.h:202:14: error: ‘bBits’ was not declared in this
> scope
> 202 | b = expand(bBits(), color >> bShift);
> | ^~~~~
> ./graphics/pixelformat.h:202:32: error: ‘bShift’ was not declared in this
> scope
> 202 | b = expand(bBits(), color >> bShift);
> | ^~~~~~
> ./graphics/pixelformat.h: In member function ‘void
> Graphics::PixelFormat::colorToARGB(int, int&, int&, int&, int&) const’:
> ./graphics/pixelformat.h:206:8: error: ‘aBits’ was not declared in this
> scope
> 206 | a = (aBits() == 0) ? 0xFF : expand(aBits(), color >> aShift);
> | ^~~~~
> ./graphics/pixelformat.h:206:56: error: ‘aShift’ was not declared in this
> scope
> 206 | a = (aBits() == 0) ? 0xFF : expand(aBits(), color >> aShift);
> | ^~~~~~
> ./graphics/pixelformat.h:207:14: error: ‘rBits’ was not declared in this
> scope
> 207 | r = expand(rBits(), color >> rShift);
> | ^~~~~
> ./graphics/pixelformat.h:207:32: error: ‘rShift’ was not declared in this
> scope
> 207 | r = expand(rBits(), color >> rShift);
> | ^~~~~~
> ./graphics/pixelformat.h:208:14: error: ‘gBits’ was not declared in this
> scope
> 208 | g = expand(gBits(), color >> gShift);
> | ^~~~~
> ./graphics/pixelformat.h:208:32: error: ‘gShift’ was not declared in this
> scope
> 208 | g = expand(gBits(), color >> gShift);
> | ^~~~~~
> ./graphics/pixelformat.h:209:14: error: ‘bBits’ was not declared in this
> scope
> 209 | b = expand(bBits(), color >> bShift);
> | ^~~~~
> ./graphics/pixelformat.h:209:32: error: ‘bShift’ was not declared in this
> scope
> 209 | b = expand(bBits(), color >> bShift);
> | ^~~~~~
> ./graphics/pixelformat.h: In member function ‘uint
> Graphics::PixelFormat::rMax() const’:
> ./graphics/pixelformat.h:241:16: error: ‘rBits’ was not declared in this
> scope
> 241 | return (1 << rBits()) - 1;
> | ^~~~~
> ./graphics/pixelformat.h: In member function ‘uint
> Graphics::PixelFormat::gMax() const’:
> ./graphics/pixelformat.h:245:16: error: ‘gBits’ was not declared in this
> scope
> 245 | return (1 << gBits()) - 1;
> | ^~~~~
> ./graphics/pixelformat.h: In member function ‘uint
> Graphics::PixelFormat::bMax() const’:
> ./graphics/pixelformat.h:249:16: error: ‘bBits’ was not declared in this
> scope
> 249 | return (1 << bBits()) - 1;
> | ^~~~~
> ./graphics/pixelformat.h: In member function ‘uint
> Graphics::PixelFormat::aMax() const’:
> ./graphics/pixelformat.h:253:16: error: ‘aBits’ was not declared in this
> scope
> 253 | return (1 << aBits()) - 1;
> | ^~~~~
> In file included from ./common/system.h:31,
> from ./backends/base-backend.h:26,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./graphics/mode.h: At global scope:
> ./graphics/mode.h:34:2: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 34 | int16 width; ///< The width in pixels
> | ^~~~~
> | Uint16
> ./graphics/mode.h:35:2: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 35 | int16 height; ///< The height in pixels
> | ^~~~~
> | Uint16
> ./graphics/mode.h:37:13: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 37 | Mode(const int16 w, const int16 h) :
> | ^~~~~
> | Uint16
> ./graphics/mode.h:37:28: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 37 | Mode(const int16 w, const int16 h) :
> | ^~~~~
> | Uint16
> ./graphics/mode.h: In constructor ‘Graphics::Mode::Mode(int, int)’:
> ./graphics/mode.h:38:3: error: class ‘Graphics::Mode’ does not have any
> field named ‘width’
> 38 | width(w),
> | ^~~~~
> ./graphics/mode.h:39:3: error: class ‘Graphics::Mode’ does not have any
> field named ‘height’
> 39 | height(h) {}
> | ^~~~~~
> ./graphics/mode.h: In member function ‘bool
> Graphics::Mode::operator<(const Graphics::Mode&) const’:
> ./graphics/mode.h:42:10: error: ‘width’ was not declared in this scope;
> did you mean ‘wcwidth’?
> 42 | return width < other.width && height < other.height;
> | ^~~~~
> | wcwidth
> ./graphics/mode.h:42:24: error: ‘const struct Graphics::Mode’ has no
> member named ‘width’
> 42 | return width < other.width && height < other.height;
> | ^~~~~
> ./graphics/mode.h:42:33: error: ‘height’ was not declared in this scope;
> did you mean ‘CWHeight’?
> 42 | return width < other.width && height < other.height;
> | ^~~~~~
> | CWHeight
> ./graphics/mode.h:42:48: error: ‘const struct Graphics::Mode’ has no
> member named ‘height’
> 42 | return width < other.width && height < other.height;
> | ^~~~~~
> In file included from ./backends/base-backend.h:26,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/system.h: At global scope:
> ./common/system.h:852:10: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 852 | virtual int16 getHeight() = 0;
> | ^~~~~
> | Uint16
> ./common/system.h:859:10: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 859 | virtual int16 getWidth() = 0;
> | ^~~~~
> | Uint16
> ./common/system.h:921:26: error: ‘uint32’ has not been declared
> 921 | virtual void fillScreen(uint32 col) = 0;
> | ^~~~~~
> ./common/system.h:1046:10: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 1046 | virtual int16 getOverlayHeight() = 0;
> | ^~~~~
> | Uint16
> ./common/system.h:1052:10: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 1052 | virtual int16 getOverlayWidth() = 0;
> | ^~~~~
> | Uint16
> ./common/system.h:1102:91: error: ‘uint32’ has not been declared
> 1102 | virtual void setMouseCursor(const void *buf, uint w, uint h, int
> hotspotX, int hotspotY, uint32 keycolor, bool dontScale = false, const
> Graphics::PixelFormat *format = nullptr) = 0;
> |
> ^~~~~~
> In file included from ./backends/base-backend.h:26,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/system.h:1114:38: error: ‘byte’ does not name a type
> 1114 | virtual void setCursorPalette(const byte *colors, uint start,
> uint num) {}
> | ^~~~
> ./common/system.h:1130:10: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 1130 | virtual uint32 getMillis(bool skipRecord = false) = 0;
> | ^~~~~~
> | Uint32
> In file included from ./common/events.h:26,
> from ./backends/base-backend.h:27,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/keyboard.h:301:2: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 301 | uint16 ascii;
> | ^~~~~~
> | Uint16
> ./common/keyboard.h:314:2: error: ‘byte’ does not name a type
> 314 | byte flags;
> | ^~~~
> ./common/keyboard.h:322:23: error: ‘uint16’ has not been declared
> 322 | KeyState(KeyCode kc, uint16 asc, byte f = 0) {
> | ^~~~~~
> ./common/keyboard.h:322:35: error: ‘byte’ has not been declared
> 322 | KeyState(KeyCode kc, uint16 asc, byte f = 0) {
> | ^~~~
> ./common/keyboard.h:342:16: error: ‘byte’ has not been declared
> 342 | bool hasFlags(byte f) const {
> | ^~~~
> ./common/keyboard.h: In constructor
> ‘Common::KeyState::KeyState(Common::KeyCode)’:
> ./common/keyboard.h:318:3: error: ‘ascii’ was not declared in this scope;
> did you mean ‘toascii’?
> 318 | ascii = (uint16)kc;
> | ^~~~~
> | toascii
> ./common/keyboard.h:318:12: error: ‘uint16’ was not declared in this
> scope; did you mean ‘Uint16’?
> 318 | ascii = (uint16)kc;
> | ^~~~~~
> | Uint16
> ./common/keyboard.h:319:3: error: ‘flags’ was not declared in this scope
> 319 | flags = 0;
> | ^~~~~
> ./common/keyboard.h: In constructor
> ‘Common::KeyState::KeyState(Common::KeyCode, int, int)’:
> ./common/keyboard.h:324:3: error: ‘ascii’ was not declared in this scope;
> did you mean ‘toascii’?
> 324 | ascii = asc;
> | ^~~~~
> | toascii
> ./common/keyboard.h:325:3: error: ‘flags’ was not declared in this scope
> 325 | flags = f;
> | ^~~~~
> ./common/keyboard.h: In member function ‘void Common::KeyState::reset()’:
> ./common/keyboard.h:330:3: error: ‘ascii’ was not declared in this scope;
> did you mean ‘toascii’?
> 330 | ascii = flags = 0;
> | ^~~~~
> | toascii
> ./common/keyboard.h:330:11: error: ‘flags’ was not declared in this scope
> 330 | ascii = flags = 0;
> | ^~~~~
> ./common/keyboard.h: In member function ‘bool
> Common::KeyState::hasFlags(int) const’:
> ./common/keyboard.h:344:16: error: ‘flags’ was not declared in this scope
> 344 | return f == (flags & ~KBD_STICKY);
> | ^~~~~
> ./common/keyboard.h: In member function ‘bool
> Common::KeyState::operator==(const Common::KeyState&) const’:
> ./common/keyboard.h:355:45: error: ‘const struct Common::KeyState’ has no
> member named ‘flags’
> 355 | return keycode == x.keycode && hasFlags(x.flags & ~KBD_STICKY);
> | ^~~~~
> In file included from ./common/rect.h:28,
> from ./common/events.h:28,
> from ./backends/base-backend.h:27,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/debug.h: At global scope:
> ./common/debug.h:79:24: error: ‘uint32’ has not been declared
> 79 | void debugC(int level, uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(3, 4);
> | ^~~~~~
> ./common/debug.h:90:25: error: ‘uint32’ has not been declared
> 90 | void debugCN(int level, uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(3, 4);
> | ^~~~~~
> ./common/debug.h:99:6: error: variable or field ‘debugC’ declared void
> 99 | void debugC(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~~~~
> ./common/debug.h:99:13: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 99 | void debugC(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~~~~
> | Uint32
> ./common/debug.h:99:35: error: expected primary-expression before ‘const’
> 99 | void debugC(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~~~
> ./common/debug.h:99:50: error: expected primary-expression before ‘...’
> token
> 99 | void debugC(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~
> In file included from ./backends/platform/sdl/sdl-sys.h:32,
> from ./backends/platform/sdl/sdl.h:26,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/scummsys.h:341:71: error: attributes after parenthesized
> initializer ignored [-fpermissive]
> 341 | #define GCC_PRINTF(x,y) __attribute__((__format__(__printf__,
> x, y)))
> |
> ^
> ./common/debug.h:99:55: note: in expansion of macro ‘GCC_PRINTF’
> 99 | void debugC(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~~~~~~~~
> In file included from ./common/rect.h:28,
> from ./common/events.h:28,
> from ./backends/base-backend.h:27,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/debug.h:108:6: error: variable or field ‘debugCN’ declared void
> 108 | void debugCN(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~~~~~
> ./common/debug.h:108:14: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 108 | void debugCN(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~~~~
> | Uint32
> ./common/debug.h:108:36: error: expected primary-expression before
> ‘const’
> 108 | void debugCN(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~~~
> ./common/debug.h:108:51: error: expected primary-expression before ‘...’
> token
> 108 | void debugCN(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~
> In file included from ./backends/platform/sdl/sdl-sys.h:32,
> from ./backends/platform/sdl/sdl.h:26,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/scummsys.h:341:71: error: attributes after parenthesized
> initializer ignored [-fpermissive]
> 341 | #define GCC_PRINTF(x,y) __attribute__((__format__(__printf__,
> x, y)))
> |
> ^
> ./common/debug.h:108:56: note: in expansion of macro ‘GCC_PRINTF’
> 108 | void debugCN(uint32 debugChannels, const char *s, ...)
> GCC_PRINTF(2, 3);
> | ^~~~~~~~~~
> In file included from ./common/rect.h:28,
> from ./common/events.h:28,
> from ./backends/base-backend.h:27,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/debug.h:123:33: error: ‘uint32’ has not been declared
> 123 | bool debugChannelSet(int level, uint32 debugChannels);
> | ^~~~~~
> In file included from ./common/events.h:28,
> from ./backends/base-backend.h:27,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/rect.h:38:2: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 38 | int16 x; ///< The horizontal part of the point
> | ^~~~~
> | Uint16
> ./common/rect.h:39:2: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 39 | int16 y; ///< The vertical part of the point
> | ^~~~~
> | Uint16
> ./common/rect.h:42:13: error: expected ‘)’ before ‘x1’
> 42 | Point(int16 x1, int16 y1) : x(x1), y(y1) {}
> | ~ ^~~
> | )
> ./common/rect.h: In constructor ‘Common::Point::Point()’:
> ./common/rect.h:41:12: error: class ‘Common::Point’ does not have any
> field named ‘x’
> 41 | Point() : x(0), y(0) {}
> | ^
> ./common/rect.h:41:18: error: class ‘Common::Point’ does not have any
> field named ‘y’
> 41 | Point() : x(0), y(0) {}
> | ^
> ./common/rect.h: In member function ‘bool Common::Point::operator==(const
> Common::Point&) const’:
> ./common/rect.h:43:53: error: ‘x’ was not declared in this scope
> 43 | bool operator==(const Point &p) const { return x == p.x && y
> == p.y; }
> | ^
> ./common/rect.h:43:60: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 43 | bool operator==(const Point &p) const { return x == p.x && y
> == p.y; }
> | ^
> ./common/rect.h:43:65: error: ‘y’ was not declared in this scope; did you
> mean ‘yn’?
> 43 | bool operator==(const Point &p) const { return x == p.x && y
> == p.y; }
> | ^
> |
> yn
> ./common/rect.h:43:72: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 43 | bool operator==(const Point &p) const { return x == p.x && y
> == p.y; }
> |
> ^
> ./common/rect.h: In member function ‘bool Common::Point::operator!=(const
> Common::Point&) const’:
> ./common/rect.h:44:53: error: ‘x’ was not declared in this scope
> 44 | bool operator!=(const Point &p) const { return x != p.x || y
> != p.y; }
> | ^
> ./common/rect.h:44:60: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 44 | bool operator!=(const Point &p) const { return x != p.x || y
> != p.y; }
> | ^
> ./common/rect.h:44:65: error: ‘y’ was not declared in this scope; did you
> mean ‘yn’?
> 44 | bool operator!=(const Point &p) const { return x != p.x || y
> != p.y; }
> | ^
> |
> yn
> ./common/rect.h:44:72: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 44 | bool operator!=(const Point &p) const { return x != p.x || y
> != p.y; }
> |
> ^
> ./common/rect.h: In member function ‘Common::Point
> Common::Point::operator+(const Common::Point&) const’:
> ./common/rect.h:45:59: error: ‘x’ was not declared in this scope
> 45 | Point operator+(const Point &delta) const { return Point(x +
> delta.x, y + delta.y); }
> | ^
> ./common/rect.h:45:69: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 45 | Point operator+(const Point &delta) const { return Point(x +
> delta.x, y + delta.y); }
> |
> ^
> ./common/rect.h:45:72: error: ‘y’ was not declared in this scope; did you
> mean ‘yn’?
> 45 | Point operator+(const Point &delta) const { return Point(x +
> delta.x, y + delta.y); }
> |
> ^
> |
> yn
> ./common/rect.h:45:82: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 45 | Point operator+(const Point &delta) const { return Point(x +
> delta.x, y + delta.y); }
> |
> ^
> ./common/rect.h: In member function ‘Common::Point
> Common::Point::operator-(const Common::Point&) const’:
> ./common/rect.h:46:59: error: ‘x’ was not declared in this scope
> 46 | Point operator-(const Point &delta) const { return Point(x -
> delta.x, y - delta.y); }
> | ^
> ./common/rect.h:46:69: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 46 | Point operator-(const Point &delta) const { return Point(x -
> delta.x, y - delta.y); }
> |
> ^
> ./common/rect.h:46:72: error: ‘y’ was not declared in this scope; did you
> mean ‘yn’?
> 46 | Point operator-(const Point &delta) const { return Point(x -
> delta.x, y - delta.y); }
> |
> ^
> |
> yn
> ./common/rect.h:46:82: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 46 | Point operator-(const Point &delta) const { return Point(x -
> delta.x, y - delta.y); }
> |
> ^
> ./common/rect.h: In member function ‘void Common::Point::operator+=(const
> Common::Point&)’:
> ./common/rect.h:49:3: error: ‘x’ was not declared in this scope
> 49 | x += delta.x;
> | ^
> ./common/rect.h:49:14: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 49 | x += delta.x;
> | ^
> ./common/rect.h:50:3: error: ‘y’ was not declared in this scope; did you
> mean ‘yn’?
> 50 | y += delta.y;
> | ^
> | yn
> ./common/rect.h:50:14: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 50 | y += delta.y;
> | ^
> ./common/rect.h: In member function ‘void Common::Point::operator-=(const
> Common::Point&)’:
> ./common/rect.h:54:3: error: ‘x’ was not declared in this scope
> 54 | x -= delta.x;
> | ^
> ./common/rect.h:54:14: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 54 | x -= delta.x;
> | ^
> ./common/rect.h:55:3: error: ‘y’ was not declared in this scope; did you
> mean ‘yn’?
> 55 | y -= delta.y;
> | ^
> | yn
> ./common/rect.h:55:14: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 55 | y -= delta.y;
> | ^
> ./common/rect.h: In member function ‘uint Common::Point::sqrDist(const
> Common::Point&) const’:
> ./common/rect.h:65:21: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 65 | int diffx = ABS(p.x - x);
> | ^
> ./common/rect.h:65:25: error: ‘x’ was not declared in this scope
> 65 | int diffx = ABS(p.x - x);
> | ^
> ./common/rect.h:69:21: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 69 | int diffy = ABS(p.y - y);
> | ^
> ./common/rect.h:69:25: error: ‘y’ was not declared in this scope; did you
> mean ‘yn’?
> 69 | int diffy = ABS(p.y - y);
> | ^
> | yn
> ./common/rect.h: At global scope:
> ./common/rect.h:96:2: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 96 | int16 top, left; ///< The point at the top left of the
> rectangle (part of the rect).
> | ^~~~~
> | Uint16
> ./common/rect.h:97:2: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 97 | int16 bottom, right; ///< The point at the bottom right of the
> rectangle (not part of the rect).
> | ^~~~~
> | Uint16
> ./common/rect.h:100:12: error: expected ‘)’ before ‘w’
> 100 | Rect(int16 w, int16 h) : top(0), left(0), bottom(h), right(w) {}
> | ~ ^~
> | )
> ./common/rect.h:101:12: error: expected ‘)’ before ‘x1’
> 101 | Rect(int16 x1, int16 y1, int16 x2, int16 y2) : top(y1),
> left(x1), bottom(y2), right(x2) {
> | ~ ^~~
> | )
> ./common/rect.h:107:2: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 107 | int16 width() const { return right - left; }
> | ^~~~~
> | Uint16
> ./common/rect.h:108:2: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 108 | int16 height() const { return bottom - top; }
> | ^~~~~
> | Uint16
> ./common/rect.h:110:16: error: ‘int16’ has not been declared
> 110 | void setWidth(int16 aWidth) {
> | ^~~~~
> ./common/rect.h:114:17: error: ‘int16’ has not been declared
> 114 | void setHeight(int16 aHeight) {
> | ^~~~~
> ./common/rect.h:126:16: error: ‘int16’ has not been declared
> 126 | bool contains(int16 x, int16 y) const {
> | ^~~~~
> ./common/rect.h:126:25: error: ‘int16’ has not been declared
> 126 | bool contains(int16 x, int16 y) const {
> | ^~~~~
> ./common/rect.h:206:12: error: ‘int16’ has not been declared
> 206 | void grow(int16 offset) {
> | ^~~~~
> ./common/rect.h:230:12: error: ‘int16’ has not been declared
> 230 | void clip(int16 maxw, int16 maxh) {
> | ^~~~~
> ./common/rect.h:230:24: error: ‘int16’ has not been declared
> 230 | void clip(int16 maxw, int16 maxh) {
> | ^~~~~
> ./common/rect.h:242:14: error: ‘int16’ has not been declared
> 242 | void moveTo(int16 x, int16 y) {
> | ^~~~~
> ./common/rect.h:242:23: error: ‘int16’ has not been declared
> 242 | void moveTo(int16 x, int16 y) {
> | ^~~~~
> ./common/rect.h:249:17: error: ‘int16’ has not been declared
> 249 | void translate(int16 dx, int16 dy) {
> | ^~~~~
> ./common/rect.h:249:27: error: ‘int16’ has not been declared
> 249 | void translate(int16 dx, int16 dy) {
> | ^~~~~
> ./common/rect.h:266:21: error: ‘int16’ has not been declared
> 266 | static Rect center(int16 cx, int16 cy, int16 w, int16 h) {
> | ^~~~~
> ./common/rect.h:266:31: error: ‘int16’ has not been declared
> 266 | static Rect center(int16 cx, int16 cy, int16 w, int16 h) {
> | ^~~~~
> ./common/rect.h:266:41: error: ‘int16’ has not been declared
> 266 | static Rect center(int16 cx, int16 cy, int16 w, int16 h) {
> | ^~~~~
> ./common/rect.h:266:50: error: ‘int16’ has not been declared
> 266 | static Rect center(int16 cx, int16 cy, int16 w, int16 h) {
> | ^~~~~
> ./common/rect.h: In constructor ‘Common::Rect::Rect()’:
> ./common/rect.h:99:11: error: class ‘Common::Rect’ does not have any
> field named ‘top’
> 99 | Rect() : top(0), left(0), bottom(0), right(0) {}
> | ^~~
> ./common/rect.h:99:19: error: class ‘Common::Rect’ does not have any
> field named ‘left’
> 99 | Rect() : top(0), left(0), bottom(0), right(0) {}
> | ^~~~
> ./common/rect.h:99:28: error: class ‘Common::Rect’ does not have any
> field named ‘bottom’
> 99 | Rect() : top(0), left(0), bottom(0), right(0) {}
> | ^~~~~~
> ./common/rect.h:99:39: error: class ‘Common::Rect’ does not have any
> field named ‘right’
> 99 | Rect() : top(0), left(0), bottom(0), right(0) {}
> | ^~~~~
> ./common/rect.h: In member function ‘void Common::Rect::setWidth(int)’:
> ./common/rect.h:111:3: error: ‘right’ was not declared in this scope
> 111 | right = left + aWidth;
> | ^~~~~
> ./common/rect.h:111:11: error: ‘left’ was not declared in this scope
> 111 | right = left + aWidth;
> | ^~~~
> ./common/rect.h: In member function ‘void Common::Rect::setHeight(int)’:
> ./common/rect.h:115:3: error: ‘bottom’ was not declared in this scope
> 115 | bottom = top + aHeight;
> | ^~~~~~
> ./common/rect.h:115:12: error: ‘top’ was not declared in this scope
> 115 | bottom = top + aHeight;
> | ^~~
> ./common/rect.h: In member function ‘bool Common::Rect::contains(int,
> int) const’:
> ./common/rect.h:127:11: error: ‘left’ was not declared in this scope
> 127 | return (left <= x) && (x < right) && (top <= y) && (y <
> bottom);
> | ^~~~
> ./common/rect.h:127:30: error: ‘right’ was not declared in this scope
> 127 | return (left <= x) && (x < right) && (top <= y) && (y <
> bottom);
> | ^~~~~
> ./common/rect.h:127:41: error: ‘top’ was not declared in this scope
> 127 | return (left <= x) && (x < right) && (top <= y) && (y <
> bottom);
> | ^~~
> ./common/rect.h:127:59: error: ‘bottom’ was not declared in this scope
> 127 | return (left <= x) && (x < right) && (top <= y) && (y <
> bottom);
> | ^~~~~~
> ./common/rect.h: In member function ‘bool Common::Rect::contains(const
> Common::Point&) const’:
> ./common/rect.h:138:21: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 138 | return contains(p.x, p.y);
> | ^
> ./common/rect.h:138:26: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 138 | return contains(p.x, p.y);
> | ^
> ./common/rect.h: In member function ‘bool Common::Rect::contains(const
> Common::Rect&) const’:
> ./common/rect.h:149:11: error: ‘left’ was not declared in this scope
> 149 | return (left <= r.left) && (r.right <= right) && (top <= r.top)
> && (r.bottom <= bottom);
> | ^~~~
> ./common/rect.h:149:21: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 149 | return (left <= r.left) && (r.right <= right) && (top <= r.top)
> && (r.bottom <= bottom);
> | ^~~~
> ./common/rect.h:149:33: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 149 | return (left <= r.left) && (r.right <= right) && (top <= r.top)
> && (r.bottom <= bottom);
> | ^~~~~
> ./common/rect.h:149:42: error: ‘right’ was not declared in this scope
> 149 | return (left <= r.left) && (r.right <= right) && (top <= r.top)
> && (r.bottom <= bottom);
> | ^~~~~
> ./common/rect.h:149:53: error: ‘top’ was not declared in this scope
> 149 | return (left <= r.left) && (r.right <= right) && (top <= r.top)
> && (r.bottom <= bottom);
> | ^~~
> ./common/rect.h:149:62: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 149 | return (left <= r.left) && (r.right <= right) && (top <= r.top)
> && (r.bottom <= bottom);
> | ^~~
> ./common/rect.h:149:73: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 149 | return (left <= r.left) && (r.right <= right) && (top <= r.top)
> && (r.bottom <= bottom);
> |
> ^~~~~~
> ./common/rect.h:149:83: error: ‘bottom’ was not declared in this scope
> 149 | return (left <= r.left) && (r.right <= right) && (top <= r.top)
> && (r.bottom <= bottom);
> |
> ^~~~~~
> ./common/rect.h: In member function ‘bool Common::Rect::equals(const
> Common::Rect&) const’:
> ./common/rect.h:160:11: error: ‘left’ was not declared in this scope
> 160 | return (left == r.left) && (right == r.right) && (top == r.top)
> && (bottom == r.bottom);
> | ^~~~
> ./common/rect.h:160:21: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 160 | return (left == r.left) && (right == r.right) && (top == r.top)
> && (bottom == r.bottom);
> | ^~~~
> ./common/rect.h:160:31: error: ‘right’ was not declared in this scope
> 160 | return (left == r.left) && (right == r.right) && (top == r.top)
> && (bottom == r.bottom);
> | ^~~~~
> ./common/rect.h:160:42: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 160 | return (left == r.left) && (right == r.right) && (top == r.top)
> && (bottom == r.bottom);
> | ^~~~~
> ./common/rect.h:160:53: error: ‘top’ was not declared in this scope
> 160 | return (left == r.left) && (right == r.right) && (top == r.top)
> && (bottom == r.bottom);
> | ^~~
> ./common/rect.h:160:62: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 160 | return (left == r.left) && (right == r.right) && (top == r.top)
> && (bottom == r.bottom);
> | ^~~
> ./common/rect.h:160:71: error: ‘bottom’ was not declared in this scope
> 160 | return (left == r.left) && (right == r.right) && (top == r.top)
> && (bottom == r.bottom);
> |
> ^~~~~~
> ./common/rect.h:160:83: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 160 | return (left == r.left) && (right == r.right) && (top == r.top)
> && (bottom == r.bottom);
> |
> ^~~~~~
> ./common/rect.h: In member function ‘bool Common::Rect::intersects(const
> Common::Rect&) const’:
> ./common/rect.h:172:11: error: ‘left’ was not declared in this scope
> 172 | return (left < r.right) && (r.left < right) && (top < r.bottom)
> && (r.top < bottom);
> | ^~~~
> ./common/rect.h:172:20: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 172 | return (left < r.right) && (r.left < right) && (top < r.bottom)
> && (r.top < bottom);
> | ^~~~~
> ./common/rect.h:172:33: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 172 | return (left < r.right) && (r.left < right) && (top < r.bottom)
> && (r.top < bottom);
> | ^~~~
> ./common/rect.h:172:40: error: ‘right’ was not declared in this scope
> 172 | return (left < r.right) && (r.left < right) && (top < r.bottom)
> && (r.top < bottom);
> | ^~~~~
> ./common/rect.h:172:51: error: ‘top’ was not declared in this scope
> 172 | return (left < r.right) && (r.left < right) && (top < r.bottom)
> && (r.top < bottom);
> | ^~~
> ./common/rect.h:172:59: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 172 | return (left < r.right) && (r.left < right) && (top < r.bottom)
> && (r.top < bottom);
> | ^~~~~~
> ./common/rect.h:172:73: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 172 | return (left < r.right) && (r.left < right) && (top < r.bottom)
> && (r.top < bottom);
> |
> ^~~
> ./common/rect.h:172:79: error: ‘bottom’ was not declared in this scope
> 172 | return (left < r.right) && (r.left < right) && (top < r.bottom)
> && (r.top < bottom);
> |
> ^~~~~~
> ./common/rect.h: In member function ‘Common::Rect
> Common::Rect::findIntersectingRect(const Common::Rect&) const’:
> ./common/rect.h:186:21: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 186 | return Rect(MAX(r.left, left), MAX(r.top, top), MIN(r.right,
> right), MIN(r.bottom, bottom));
> | ^~~~
> ./common/rect.h:186:27: error: ‘left’ was not declared in this scope
> 186 | return Rect(MAX(r.left, left), MAX(r.top, top), MIN(r.right,
> right), MIN(r.bottom, bottom));
> | ^~~~
> ./common/rect.h:186:40: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 186 | return Rect(MAX(r.left, left), MAX(r.top, top), MIN(r.right,
> right), MIN(r.bottom, bottom));
> | ^~~
> ./common/rect.h:186:45: error: ‘top’ was not declared in this scope
> 186 | return Rect(MAX(r.left, left), MAX(r.top, top), MIN(r.right,
> right), MIN(r.bottom, bottom));
> | ^~~
> ./common/rect.h:186:57: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 186 | return Rect(MAX(r.left, left), MAX(r.top, top), MIN(r.right,
> right), MIN(r.bottom, bottom));
> | ^~~~~
> ./common/rect.h:186:64: error: ‘right’ was not declared in this scope
> 186 | return Rect(MAX(r.left, left), MAX(r.top, top), MIN(r.right,
> right), MIN(r.bottom, bottom));
> |
> ^~~~~
> ./common/rect.h:186:78: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 186 | return Rect(MAX(r.left, left), MAX(r.top, top), MIN(r.right,
> right), MIN(r.bottom, bottom));
> |
> ^~~~~~
> ./common/rect.h:186:86: error: ‘bottom’ was not declared in this scope
> 186 | return Rect(MAX(r.left, left), MAX(r.top, top), MIN(r.right,
> right), MIN(r.bottom, bottom));
> |
> ^~~~~~
> ./common/rect.h: In member function ‘void Common::Rect::extend(const
> Common::Rect&)’:
> ./common/rect.h:195:3: error: ‘left’ was not declared in this scope
> 195 | left = MIN(left, r.left);
> | ^~~~
> ./common/rect.h:195:22: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 195 | left = MIN(left, r.left);
> | ^~~~
> ./common/rect.h:196:3: error: ‘right’ was not declared in this scope
> 196 | right = MAX(right, r.right);
> | ^~~~~
> ./common/rect.h:196:24: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 196 | right = MAX(right, r.right);
> | ^~~~~
> ./common/rect.h:197:3: error: ‘top’ was not declared in this scope
> 197 | top = MIN(top, r.top);
> | ^~~
> ./common/rect.h:197:20: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 197 | top = MIN(top, r.top);
> | ^~~
> ./common/rect.h:198:3: error: ‘bottom’ was not declared in this scope
> 198 | bottom = MAX(bottom, r.bottom);
> | ^~~~~~
> ./common/rect.h:198:26: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 198 | bottom = MAX(bottom, r.bottom);
> | ^~~~~~
> ./common/rect.h: In member function ‘void Common::Rect::grow(int)’:
> ./common/rect.h:207:3: error: ‘top’ was not declared in this scope
> 207 | top -= offset;
> | ^~~
> ./common/rect.h:208:3: error: ‘left’ was not declared in this scope
> 208 | left -= offset;
> | ^~~~
> ./common/rect.h:209:3: error: ‘bottom’ was not declared in this scope
> 209 | bottom += offset;
> | ^~~~~~
> ./common/rect.h:210:3: error: ‘right’ was not declared in this scope
> 210 | right += offset;
> | ^~~~~
> ./common/rect.h: In member function ‘void Common::Rect::clip(const
> Common::Rect&)’:
> ./common/rect.h:217:7: error: ‘top’ was not declared in this scope
> 217 | if (top < r.top) top = r.top;
> | ^~~
> ./common/rect.h:217:15: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 217 | if (top < r.top) top = r.top;
> | ^~~
> ./common/rect.h:217:28: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 217 | if (top < r.top) top = r.top;
> | ^~~
> ./common/rect.h:218:20: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 218 | else if (top > r.bottom) top = r.bottom;
> | ^~~~~~
> ./common/rect.h:218:36: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 218 | else if (top > r.bottom) top = r.bottom;
> | ^~~~~~
> ./common/rect.h:220:7: error: ‘left’ was not declared in this scope
> 220 | if (left < r.left) left = r.left;
> | ^~~~
> ./common/rect.h:220:16: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 220 | if (left < r.left) left = r.left;
> | ^~~~
> ./common/rect.h:220:31: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 220 | if (left < r.left) left = r.left;
> | ^~~~
> ./common/rect.h:221:21: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 221 | else if (left > r.right) left = r.right;
> | ^~~~~
> ./common/rect.h:221:37: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 221 | else if (left > r.right) left = r.right;
> | ^~~~~
> ./common/rect.h:223:7: error: ‘bottom’ was not declared in this scope
> 223 | if (bottom > r.bottom) bottom = r.bottom;
> | ^~~~~~
> ./common/rect.h:223:18: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 223 | if (bottom > r.bottom) bottom = r.bottom;
> | ^~~~~~
> ./common/rect.h:223:37: error: ‘const struct Common::Rect’ has no member
> named ‘bottom’
> 223 | if (bottom > r.bottom) bottom = r.bottom;
> | ^~~~~~
> ./common/rect.h:224:23: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 224 | else if (bottom < r.top) bottom = r.top;
> | ^~~
> ./common/rect.h:224:39: error: ‘const struct Common::Rect’ has no member
> named ‘top’
> 224 | else if (bottom < r.top) bottom = r.top;
> | ^~~
> ./common/rect.h:226:7: error: ‘right’ was not declared in this scope
> 226 | if (right > r.right) right = r.right;
> | ^~~~~
> ./common/rect.h:226:17: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 226 | if (right > r.right) right = r.right;
> | ^~~~~
> ./common/rect.h:226:34: error: ‘const struct Common::Rect’ has no member
> named ‘right’
> 226 | if (right > r.right) right = r.right;
> | ^~~~~
> ./common/rect.h:227:22: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 227 | else if (right < r.left) right = r.left;
> | ^~~~
> ./common/rect.h:227:38: error: ‘const struct Common::Rect’ has no member
> named ‘left’
> 227 | else if (right < r.left) right = r.left;
> | ^~~~
> ./common/rect.h: In member function ‘void Common::Rect::clip(int, int)’:
> ./common/rect.h:231:29: error: no matching function for call to
> ‘Common::Rect::Rect(int, int, int&, int&)’
> 231 | clip(Rect(0, 0, maxw, maxh));
> | ^
> ./common/rect.h:99:2: note: candidate: ‘Common::Rect::Rect()’
> 99 | Rect() : top(0), left(0), bottom(0), right(0) {}
> | ^~~~
> ./common/rect.h:99:2: note: candidate expects 0 arguments, 4 provided
> ./common/rect.h:95:8: note: candidate: ‘Common::Rect::Rect(const
> Common::Rect&)’
> 95 | struct Rect {
> | ^~~~
> ./common/rect.h:95:8: note: candidate expects 1 argument, 4 provided
> ./common/rect.h: In member function ‘bool Common::Rect::isEmpty() const’:
> ./common/rect.h:235:11: error: ‘left’ was not declared in this scope
> 235 | return (left >= right || top >= bottom);
> | ^~~~
> ./common/rect.h:235:19: error: ‘right’ was not declared in this scope
> 235 | return (left >= right || top >= bottom);
> | ^~~~~
> ./common/rect.h:235:28: error: ‘top’ was not declared in this scope
> 235 | return (left >= right || top >= bottom);
> | ^~~
> ./common/rect.h:235:35: error: ‘bottom’ was not declared in this scope
> 235 | return (left >= right || top >= bottom);
> | ^~~~~~
> ./common/rect.h: In member function ‘bool Common::Rect::isValidRect()
> const’:
> ./common/rect.h:239:11: error: ‘left’ was not declared in this scope
> 239 | return (left <= right && top <= bottom);
> | ^~~~
> ./common/rect.h:239:19: error: ‘right’ was not declared in this scope
> 239 | return (left <= right && top <= bottom);
> | ^~~~~
> ./common/rect.h:239:28: error: ‘top’ was not declared in this scope
> 239 | return (left <= right && top <= bottom);
> | ^~~
> ./common/rect.h:239:35: error: ‘bottom’ was not declared in this scope
> 239 | return (left <= right && top <= bottom);
> | ^~~~~~
> ./common/rect.h: In member function ‘void Common::Rect::moveTo(int,
> int)’:
> ./common/rect.h:243:3: error: ‘bottom’ was not declared in this scope
> 243 | bottom += y - top;
> | ^~~~~~
> ./common/rect.h:243:17: error: ‘top’ was not declared in this scope
> 243 | bottom += y - top;
> | ^~~
> ./common/rect.h:244:3: error: ‘right’ was not declared in this scope
> 244 | right += x - left;
> | ^~~~~
> ./common/rect.h:244:16: error: ‘left’ was not declared in this scope
> 244 | right += x - left;
> | ^~~~
> ./common/rect.h: In member function ‘void Common::Rect::translate(int,
> int)’:
> ./common/rect.h:250:3: error: ‘left’ was not declared in this scope
> 250 | left += dx; right += dx;
> | ^~~~
> ./common/rect.h:250:15: error: ‘right’ was not declared in this scope
> 250 | left += dx; right += dx;
> | ^~~~~
> ./common/rect.h:251:3: error: ‘top’ was not declared in this scope
> 251 | top += dy; bottom += dy;
> | ^~~
> ./common/rect.h:251:14: error: ‘bottom’ was not declared in this scope
> 251 | top += dy; bottom += dy;
> | ^~~~~~
> ./common/rect.h: In member function ‘void Common::Rect::moveTo(const
> Common::Point&)’:
> ./common/rect.h:255:12: error: ‘const struct Common::Point’ has no member
> named ‘x’
> 255 | moveTo(p.x, p.y);
> | ^
> ./common/rect.h:255:17: error: ‘const struct Common::Point’ has no member
> named ‘y’
> 255 | moveTo(p.x, p.y);
> | ^
> ./common/rect.h: In member function ‘void Common::Rect::debugPrint(int,
> const char*) const’:
> ./common/rect.h:259:51: error: ‘left’ was not declared in this scope
> 259 | debug(debuglevel, "%s %d, %d, %d, %d", caption, left, top,
> right, bottom);
> | ^~~~
> ./common/rect.h:259:57: error: ‘top’ was not declared in this scope
> 259 | debug(debuglevel, "%s %d, %d, %d, %d", caption, left, top,
> right, bottom);
> | ^~~
> ./common/rect.h:259:62: error: ‘right’ was not declared in this scope
> 259 | debug(debuglevel, "%s %d, %d, %d, %d", caption, left, top,
> right, bottom);
> |
> ^~~~~
> ./common/rect.h:259:69: error: ‘bottom’ was not declared in this scope
> 259 | debug(debuglevel, "%s %d, %d, %d, %d", caption, left, top,
> right, bottom);
> |
> ^~~~~~
> ./common/rect.h: In static member function ‘static Common::Rect
> Common::Rect::center(int, int, int, int)’:
> ./common/rect.h:268:33: error: no matching function for call to
> ‘Common::Rect::Rect(int&, int&, int, int)’
> 268 | return Rect(x, y, x + w, y + h);
> | ^
> ./common/rect.h:99:2: note: candidate: ‘Common::Rect::Rect()’
> 99 | Rect() : top(0), left(0), bottom(0), right(0) {}
> | ^~~~
> ./common/rect.h:99:2: note: candidate expects 0 arguments, 4 provided
> ./common/rect.h:95:8: note: candidate: ‘Common::Rect::Rect(const
> Common::Rect&)’
> 95 | struct Rect {
> | ^~~~
> ./common/rect.h:95:8: note: candidate expects 1 argument, 4 provided
> In file included from ./backends/base-backend.h:27,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/events.h: At global scope:
> ./common/events.h:118:7: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 118 | const int16 JOYAXIS_MIN = -32768;
> | ^~~~~
> | Uint16
> ./common/events.h:119:7: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 119 | const int16 JOYAXIS_MAX = 32767;
> | ^~~~~
> | Uint16
> ./common/events.h:126:2: error: ‘byte’ does not name a type
> 126 | byte axis;
> | ^~~~
> ./common/events.h:128:2: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 128 | int16 position;
> | ^~~~~
> | Uint16
> ./common/events.h:135:2: error: ‘uint8’ does not name a type; did you
> mean ‘Uint8’?
> 135 | uint8 button;
> | ^~~~~
> | Uint8
> ./common/events.h: In constructor
> ‘Common::JoystickState::JoystickState()’:
> ./common/events.h:137:20: error: class ‘Common::JoystickState’ does not
> have any field named ‘axis’
> 137 | JoystickState() : axis(0), position(0), button(0) {}
> | ^~~~
> ./common/events.h:137:29: error: class ‘Common::JoystickState’ does not
> have any field named ‘position’
> 137 | JoystickState() : axis(0), position(0), button(0) {}
> | ^~~~~~~~
> ./common/events.h:137:42: error: class ‘Common::JoystickState’ does not
> have any field named ‘button’
> 137 | JoystickState() : axis(0), position(0), button(0) {}
> | ^~~~~~
> ./common/events.h: At global scope:
> ./common/events.h:186:9: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 186 | typedef uint32 CustomEventType;
> | ^~~~~~
> | Uint32
> ./common/events.h:218:2: error: ‘CustomEventType’ does not name a type
> 218 | CustomEventType customType;
> | ^~~~~~~~~~~~~~~
> ./common/events.h: In constructor ‘Common::Event::Event()’:
> ./common/events.h:229:51: error: class ‘Common::Event’ does not have any
> field named ‘customType’
> 229 | Event() : type(EVENT_INVALID), kbdRepeat(false), customType(0) {
> | ^~~~~~~~~~
> In file included from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/base-backend.h: At global scope:
> ./backends/base-backend.h:35:26: error: ‘uint32’ has not been declared
> 35 | virtual void fillScreen(uint32 col);
> | ^~~~~~
> In file included from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/modular-backend.h:91:10: error: ‘int16’ does not name a type;
> did you mean ‘Uint16’?
> 91 | virtual int16 getHeight() override final;
> | ^~~~~
> | Uint16
> ./backends/modular-backend.h:92:10: error: ‘int16’ does not name a type;
> did you mean ‘Uint16’?
> 92 | virtual int16 getWidth() override final;
> | ^~~~~
> | Uint16
> ./backends/modular-backend.h:97:26: error: ‘uint32’ has not been declared
> 97 | virtual void fillScreen(uint32 col) override final;
> | ^~~~~~
> ./backends/modular-backend.h:109:10: error: ‘int16’ does not name a type;
> did you mean ‘Uint16’?
> 109 | virtual int16 getOverlayHeight() override final;
> | ^~~~~
> | Uint16
> ./backends/modular-backend.h:110:10: error: ‘int16’ does not name a type;
> did you mean ‘Uint16’?
> 110 | virtual int16 getOverlayWidth() override final;
> | ^~~~~
> | Uint16
> ./backends/modular-backend.h:114:91: error: ‘uint32’ has not been
> declared
> 114 | virtual void setMouseCursor(const void *buf, uint w, uint h, int
> hotspotX, int hotspotY, uint32 keycolor, bool dontScale = false, const
> Graphics::PixelFormat *format = NULL) override final;
> |
> ^~~~~~
> In file included from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/modular-backend.h:115:38: error: ‘byte’ does not name a type
> 115 | virtual void setCursorPalette(const byte *colors, uint start,
> uint num) override final;
> | ^~~~
> In file included from ./audio/mixer_intern.h:28,
> from ./backends/mixer/mixer.h:26,
> from ./backends/mixer/sdl/sdl-mixer.h:27,
> from ./backends/platform/sdl/sdl.h:29,
> from backends/platform/sdl/sdl.cpp:25:
> ./audio/mixer.h:44:2: error: ‘uint32’ does not name a type; did you mean
> ‘Uint32’?
> 44 | uint32 _val;
> | ^~~~~~
> | Uint32
> ./audio/mixer.h: In constructor ‘Audio::SoundHandle::SoundHandle()’:
> ./audio/mixer.h:46:25: error: class ‘Audio::SoundHandle’ does not have
> any field named ‘_val’
> 46 | inline SoundHandle() : _val(0xFFFFFFFF) {}
> | ^~~~
> In file included from ./audio/mixer_intern.h:28,
> from ./backends/mixer/mixer.h:26,
> from ./backends/mixer/sdl/sdl-mixer.h:27,
> from ./backends/platform/sdl/sdl.h:29,
> from backends/platform/sdl/sdl.cpp:25:
> ./audio/mixer.h: At global scope:
> ./audio/mixer.h:112:3: error: ‘byte’ has not been declared
> 112 | byte volume = kMaxChannelVolume,
> | ^~~~
> ./audio/mixer.h:113:3: error: ‘int8’ has not been declared
> 113 | int8 balance = 0,
> | ^~~~
> ./audio/mixer.h:211:52: error: ‘byte’ has not been declared
> 211 | virtual void setChannelVolume(SoundHandle handle, byte volume) =
> 0;
> | ^~~~
> ./audio/mixer.h:219:10: error: ‘byte’ does not name a type
> 219 | virtual byte getChannelVolume(SoundHandle handle) = 0;
> | ^~~~
> ./audio/mixer.h:228:53: error: ‘int8’ has not been declared
> 228 | virtual void setChannelBalance(SoundHandle handle, int8 balance)
> = 0;
> | ^~~~
> ./audio/mixer.h:236:10: error: ‘int8’ does not name a type; did you mean
> ‘Uint8’?
> 236 | virtual int8 getChannelBalance(SoundHandle handle) = 0;
> | ^~~~
> | Uint8
> ./audio/mixer.h:241:10: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 241 | virtual uint32 getSoundElapsedTime(SoundHandle handle) = 0;
> | ^~~~~~
> | Uint32
> In file included from ./backends/mixer/mixer.h:26,
> from ./backends/mixer/sdl/sdl-mixer.h:27,
> from ./backends/platform/sdl/sdl.h:29,
> from backends/platform/sdl/sdl.cpp:25:
> ./audio/mixer_intern.h:61:2: error: ‘uint32’ does not name a type; did
> you mean ‘Uint32’?
> 61 | uint32 _handleSeed;
> | ^~~~~~
> | Uint32
> ./audio/mixer_intern.h:85:11: error: ‘byte’ has not been declared
> 85 | int id, byte volume, int8 balance,
> | ^~~~
> ./audio/mixer_intern.h:85:24: error: ‘int8’ has not been declared
> 85 | int id, byte volume, int8 balance,
> | ^~~~
> ./audio/mixer_intern.h:106:52: error: ‘byte’ has not been declared
> 106 | virtual void setChannelVolume(SoundHandle handle, byte volume);
> | ^~~~
> ./audio/mixer_intern.h:107:10: error: ‘byte’ does not name a type
> 107 | virtual byte getChannelVolume(SoundHandle handle);
> | ^~~~
> ./audio/mixer_intern.h:108:53: error: ‘int8’ has not been declared
> 108 | virtual void setChannelBalance(SoundHandle handle, int8
> balance);
> | ^~~~
> ./audio/mixer_intern.h:109:10: error: ‘int8’ does not name a type; did
> you mean ‘Uint8’?
> 109 | virtual int8 getChannelBalance(SoundHandle handle);
> | ^~~~
> | Uint8
> ./audio/mixer_intern.h:111:10: error: ‘uint32’ does not name a type; did
> you mean ‘Uint32’?
> 111 | virtual uint32 getSoundElapsedTime(SoundHandle handle);
> | ^~~~~~
> | Uint32
> ./audio/mixer_intern.h:134:18: error: ‘byte’ has not been declared
> 134 | int mixCallback(byte *samples, uint len);
> | ^~~~
> In file included from ./backends/platform/sdl/sdl.h:29,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/mixer/sdl/sdl-mixer.h:66:37: error: ‘uint32’ has not been
> declared
> 66 | virtual SDL_AudioSpec getAudioSpec(uint32 rate);
> | ^~~~~~
> ./backends/mixer/sdl/sdl-mixer.h:76:31: error: ‘byte’ has not been
> declared
> 76 | virtual void callbackHandler(byte *samples, int len);
> | ^~~~
> ./backends/mixer/sdl/sdl-mixer.h:82:39: error: ‘byte’ has not been
> declared
> 82 | static void sdlCallback(void *this_, byte *samples, int len);
> | ^~~~
> In file included from ./backends/graphics/graphics.h:31,
> from ./backends/graphics/windowed.h:26,
> from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./graphics/palette.h:66:32: error: ‘byte’ does not name a type
> 66 | virtual void setPalette(const byte *colors, uint start, uint
> num) = 0;
> | ^~~~
> ./graphics/palette.h:99:27: error: ‘byte’ has not been declared
> 99 | virtual void grabPalette(byte *colors, uint start, uint num)
> const = 0;
> | ^~~~
> In file included from ./backends/graphics/windowed.h:26,
> from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/graphics/graphics.h:79:10: error: ‘int16’ does not name a
> type; did you mean ‘Uint16’?
> 79 | virtual int16 getHeight() const = 0;
> | ^~~~~
> | Uint16
> ./backends/graphics/graphics.h:80:10: error: ‘int16’ does not name a
> type; did you mean ‘Uint16’?
> 80 | virtual int16 getWidth() const = 0;
> | ^~~~~
> | Uint16
> ./backends/graphics/graphics.h:81:32: error: ‘byte’ does not name a type
> 81 | virtual void setPalette(const byte *colors, uint start, uint
> num) = 0;
> | ^~~~
> ./backends/graphics/graphics.h:82:27: error: ‘byte’ has not been declared
> 82 | virtual void grabPalette(byte *colors, uint start, uint num)
> const = 0;
> | ^~~~
> ./backends/graphics/graphics.h:86:26: error: ‘uint32’ has not been
> declared
> 86 | virtual void fillScreen(uint32 col) = 0;
> | ^~~~~~
> ./backends/graphics/graphics.h:98:10: error: ‘int16’ does not name a
> type; did you mean ‘Uint16’?
> 98 | virtual int16 getOverlayHeight() const = 0;
> | ^~~~~
> | Uint16
> ./backends/graphics/graphics.h:99:10: error: ‘int16’ does not name a
> type; did you mean ‘Uint16’?
> 99 | virtual int16 getOverlayWidth() const = 0;
> | ^~~~~
> | Uint16
> ./backends/graphics/graphics.h:103:91: error: ‘uint32’ has not been
> declared
> 103 | virtual void setMouseCursor(const void *buf, uint w, uint h, int
> hotspotX, int hotspotY, uint32 keycolor, bool dontScale = false, const
> Graphics::PixelFormat *format = NULL) = 0;
> |
> ^~~~~~
> In file included from ./backends/graphics/windowed.h:26,
> from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/graphics/graphics.h:104:38: error: ‘byte’ does not name a type
> 104 | virtual void setCursorPalette(const byte *colors, uint start,
> uint num) = 0;
> | ^~~~
> In file included from ./backends/graphics/windowed.h:27,
> from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/frac.h:44:9: error: ‘int32’ does not name a type; did you mean
> ‘Uint32’?
> 44 | typedef int32 frac_t;
> | ^~~~~
> | Uint32
> ./common/frac.h:46:8: error: ‘frac_t’ does not name a type
> 46 | inline frac_t doubleToFrac(double value) { return (frac_t)(value
> * FRAC_ONE); }
> | ^~~~~~
> ./common/frac.h:47:1: warning: inline variables are only available with
> ‘-std=c++17’ or ‘-std=gnu++17’
> 47 | inline double fracToDouble(frac_t value) { return ((double)value)
> / FRAC_ONE; }
> | ^~~~~~
> ./common/frac.h:47:28: error: ‘frac_t’ was not declared in this scope
> 47 | inline double fracToDouble(frac_t value) { return ((double)value)
> / FRAC_ONE; }
> | ^~~~~~
> ./common/frac.h:49:8: error: ‘frac_t’ does not name a type
> 49 | inline frac_t intToFrac(int16 value) { return value * (1 <<
> FRAC_BITS); }
> | ^~~~~~
> ./common/frac.h:50:8: error: ‘int16’ does not name a type; did you mean
> ‘Uint16’?
> 50 | inline int16 fracToInt(frac_t value) { return value / (1 <<
> FRAC_BITS); }
> | ^~~~~
> | Uint16
> In file included from ./common/hashmap.h:53,
> from ./common/config-manager.h:27,
> from ./backends/graphics/windowed.h:29,
> from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/memorypool.h:111:2: error: ‘byte’ does not name a type
> 111 | byte _storage[NUM_INTERNAL_CHUNKS * REAL_CHUNK_SIZE];
> | ^~~~
> ./common/memorypool.h: In constructor
> ‘Common::FixedSizeMemoryPool<CHUNK_SIZE,
> NUM_INTERNAL_CHUNKS>::FixedSizeMemoryPool()’:
> ./common/memorypool.h:116:25: error: ‘_storage’ was not declared in this
> scope
> 116 | Page internalPage = { _storage, NUM_INTERNAL_CHUNKS };
> | ^~~~~~~~
> In file included from ./graphics/scaler.h:27,
> from ./graphics/scaler/aspect.h:27,
> from ./backends/graphics/windowed.h:31,
> from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./graphics/surface.h: At global scope:
> ./graphics/surface.h:53:2: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 53 | uint16 w;
> | ^~~~~~
> | Uint16
> ./graphics/surface.h:58:2: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 58 | uint16 h;
> | ^~~~~~
> | Uint16
> ./graphics/surface.h:65:2: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 65 | uint16 pitch;
> | ^~~~~~
> | Uint16
> ./graphics/surface.h:144:14: error: ‘uint16’ has not been declared
> 144 | void create(uint16 width, uint16 height, const PixelFormat
> &format);
> | ^~~~~~
> ./graphics/surface.h:144:28: error: ‘uint16’ has not been declared
> 144 | void create(uint16 width, uint16 height, const PixelFormat
> &format);
> | ^~~~~~
> ./graphics/surface.h:168:12: error: ‘uint16’ has not been declared
> 168 | void init(uint16 width, uint16 height, uint16 pitch, void
> *pixels, const PixelFormat &format);
> | ^~~~~~
> ./graphics/surface.h:168:26: error: ‘uint16’ has not been declared
> 168 | void init(uint16 width, uint16 height, uint16 pitch, void
> *pixels, const PixelFormat &format);
> | ^~~~~~
> ./graphics/surface.h:168:41: error: ‘uint16’ has not been declared
> 168 | void init(uint16 width, uint16 height, uint16 pitch, void
> *pixels, const PixelFormat &format);
> | ^~~~~~
> ./graphics/surface.h:250:60: error: ‘byte’ does not name a type
> 250 | void convertToInPlace(const PixelFormat &dstFormat, const byte
> *palette = 0);
> | ^~~~
> ./graphics/surface.h:261:67: error: ‘byte’ does not name a type
> 261 | Graphics::Surface *convertTo(const PixelFormat &dstFormat, const
> byte *palette = 0) const;
> |
> ^~~~
> ./graphics/surface.h:273:48: error: ‘uint32’ has not been declared
> 273 | void drawLine(int x0, int y0, int x1, int y1, uint32 color);
> | ^~~~~~
> ./graphics/surface.h:288:73: error: ‘uint32’ has not been declared
> 288 | void drawThickLine(int x0, int y0, int x1, int y1, int penX, int
> penY, uint32 color);
> |
> ^~~~~~
> ./graphics/surface.h:299:35: error: ‘uint32’ has not been declared
> 299 | void hLine(int x, int y, int x2, uint32 color);
> | ^~~~~~
> ./graphics/surface.h:310:35: error: ‘uint32’ has not been declared
> 310 | void vLine(int x, int y, int y2, uint32 color);
> | ^~~~~~
> ./graphics/surface.h:318:32: error: ‘uint32’ has not been declared
> 318 | void fillRect(Common::Rect r, uint32 color);
> | ^~~~~~
> ./graphics/surface.h:326:40: error: ‘uint32’ has not been declared
> 326 | void frameRect(const Common::Rect &r, uint32 color);
> | ^~~~~~
> ./graphics/surface.h:348:21: error: expected ‘;’ at end of member
> declaration
> 348 | Graphics::Surface *scale(uint16 newWidth, uint16 newHeight, bool
> filtering = false) const;
> | ^~~~~
> | ;
> ./graphics/surface.h:348:33: error: expected ‘)’ before ‘newWidth’
> 348 | Graphics::Surface *scale(uint16 newWidth, uint16 newHeight, bool
> filtering = false) const;
> | ~ ^~~~~~~~~
> | )
> ./graphics/surface.h: In constructor ‘Graphics::Surface::Surface()’:
> ./graphics/surface.h:82:14: error: class ‘Graphics::Surface’ does not
> have any field named ‘w’
> 82 | Surface() : w(0), h(0), pitch(0), pixels(0), format() {
> | ^
> ./graphics/surface.h:82:20: error: class ‘Graphics::Surface’ does not
> have any field named ‘h’
> 82 | Surface() : w(0), h(0), pitch(0), pixels(0), format() {
> | ^
> ./graphics/surface.h:82:26: error: class ‘Graphics::Surface’ does not
> have any field named ‘pitch’
> 82 | Surface() : w(0), h(0), pitch(0), pixels(0), format() {
> | ^~~~~
> ./graphics/surface.h: In member function ‘const void*
> Graphics::Surface::getBasePtr(int, int) const’:
> ./graphics/surface.h:120:17: error: ISO C++ forbids declaration of ‘type
> name’ with no type [-fpermissive]
> 120 | return (const byte *)(pixels) + y * pitch + x *
> format.bytesPerPixel;
> | ^~~~
> ./graphics/surface.h:120:11: error: expected primary-expression before
> ‘const’
> 120 | return (const byte *)(pixels) + y * pitch + x *
> format.bytesPerPixel;
> | ^~~~~
> ./graphics/surface.h:120:11: error: expected ‘)’ before ‘const’
> 120 | return (const byte *)(pixels) + y * pitch + x *
> format.bytesPerPixel;
> | ~^~~~~
> | )
> ./graphics/surface.h: In member function ‘void*
> Graphics::Surface::getBasePtr(int, int)’:
> ./graphics/surface.h:131:22: error: ‘byte’ does not name a type
> 131 | return static_cast<byte *>(pixels) + y * pitch + x *
> format.bytesPerPixel;
> | ^~~~
> ./graphics/surface.h:131:27: error: expected ‘>’ before ‘*’ token
> 131 | return static_cast<byte *>(pixels) + y * pitch + x *
> format.bytesPerPixel;
> | ^
> ./graphics/surface.h:131:27: error: expected ‘(’ before ‘*’ token
> 131 | return static_cast<byte *>(pixels) + y * pitch + x *
> format.bytesPerPixel;
> | ^
> | (
> ./graphics/surface.h:131:28: error: expected primary-expression before
> ‘>’ token
> 131 | return static_cast<byte *>(pixels) + y * pitch + x *
> format.bytesPerPixel;
> | ^
> ./graphics/surface.h:131:44: error: ‘pitch’ was not declared in this
> scope
> 131 | return static_cast<byte *>(pixels) + y * pitch + x *
> format.bytesPerPixel;
> | ^~~~~
> ./graphics/surface.h:131:63: error: ‘struct Graphics::PixelFormat’ has no
> member named ‘bytesPerPixel’
> 131 | return static_cast<byte *>(pixels) + y * pitch + x *
> format.bytesPerPixel;
> |
> ^~~~~~~~~~~~~
> ./graphics/surface.h:131:76: error: expected ‘)’ before ‘;’ token
> 131 | return static_cast<byte *>(pixels) + y * pitch + x *
> format.bytesPerPixel;
> |
> ^
> |
> )
> ./graphics/surface.h: At global scope:
> ./graphics/surface.h:385:30: error: ‘uint32’ has not been declared
> 385 | FloodFill(Surface *surface, uint32 oldColor, uint32 fillColor,
> bool maskMode = false);
> | ^~~~~~
> ./graphics/surface.h:385:47: error: ‘uint32’ has not been declared
> 385 | FloodFill(Surface *surface, uint32 oldColor, uint32 fillColor,
> bool maskMode = false);
> | ^~~~~~
> ./graphics/surface.h:426:2: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 426 | uint32 _oldColor, _fillColor;
> | ^~~~~~
> | Uint32
> ./graphics/surface.h:427:2: error: ‘byte’ does not name a type
> 427 | byte *_visited;
> | ^~~~
> In file included from ./graphics/scaler/aspect.h:27,
> from ./backends/graphics/windowed.h:31,
> from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./graphics/scaler.h:29:13: error: variable or field ‘InitScalers’
> declared void
> 29 | extern void InitScalers(uint32 BitFormat);
> | ^~~~~~~~~~~
> ./graphics/scaler.h:29:25: error: ‘uint32’ was not declared in this
> scope; did you mean ‘Uint32’?
> 29 | extern void InitScalers(uint32 BitFormat);
> | ^~~~~~
> | Uint32
> ./graphics/scaler.h:32:31: error: ‘uint8’ does not name a type; did you
> mean ‘Uint8’?
> 32 | typedef void ScalerProc(const uint8 *srcPtr, uint32 srcPitch,
> | ^~~~~
> | Uint8
> ./graphics/scaler.h:32:46: error: ‘uint32’ has not been declared
> 32 | typedef void ScalerProc(const uint8 *srcPtr, uint32 srcPitch,
> | ^~~~~~
> ./graphics/scaler.h:33:8: error: ‘uint8’ has not been declared
> 33 | uint8 *dstPtr, uint32 dstPitch, int width, int height);
> | ^~~~~
> ./graphics/scaler.h:33:23: error: ‘uint32’ has not been declared
> 33 | uint8 *dstPtr, uint32 dstPitch, int width, int height);
> | ^~~~~~
> ./graphics/scaler.h:36:22: error: ‘uint8’ does not name a type; did you
> mean ‘Uint8’?
> 36 | extern void x(const uint8 *srcPtr, uint32 srcPitch, uint8
> *dstPtr, \
> | ^~~~~
> ./graphics/scaler.h:40:1: note: in expansion of macro ‘DECLARE_SCALER’
> 40 | DECLARE_SCALER(Normal1x);
> | ^~~~~~~~~~~~~~
> ./graphics/scaler.h:36:37: error: ‘uint32’ has not been declared
> 36 | extern void x(const uint8 *srcPtr, uint32 srcPitch, uint8
> *dstPtr, \
> | ^~~~~~
> ./graphics/scaler.h:40:1: note: in expansion of macro ‘DECLARE_SCALER’
> 40 | DECLARE_SCALER(Normal1x);
> | ^~~~~~~~~~~~~~
> ./graphics/scaler.h:36:54: error: ‘uint8’ has not been declared
> 36 | extern void x(const uint8 *srcPtr, uint32 srcPitch, uint8
> *dstPtr, \
> | ^~~~~
> ./graphics/scaler.h:40:1: note: in expansion of macro ‘DECLARE_SCALER’
> 40 | DECLARE_SCALER(Normal1x);
> | ^~~~~~~~~~~~~~
> ./graphics/scaler.h:37:6: error: ‘uint32’ has not been declared
> 37 | uint32 dstPitch, int width, int height)
> | ^~~~~~
> ./graphics/scaler.h:40:1: note: in expansion of macro ‘DECLARE_SCALER’
> 40 | DECLARE_SCALER(Normal1x);
> | ^~~~~~~~~~~~~~
> ./graphics/scaler.h:90:60: error: ‘uint8’ does not name a type; did you
> mean ‘Uint8’?
> 90 | extern bool createThumbnail(Graphics::Surface *surf, const uint8
> *pixels, int w, int h, const uint8 *palette);
> | ^~~~~
> | Uint8
> ./graphics/scaler.h:90:95: error: ‘uint8’ does not name a type; did you
> mean ‘Uint8’?
> 90 | extern bool createThumbnail(Graphics::Surface *surf, const uint8
> *pixels, int w, int h, const uint8 *palette);
> |
> ^~~~~
> |
> Uint8
> In file included from ./backends/graphics/windowed.h:31,
> from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./graphics/scaler/aspect.h:52:21: error: ‘uint8’ was not declared in this
> scope; did you mean ‘Uint8’?
> 52 | int stretch200To240(uint8 *buf,
> | ^~~~~
> | Uint8
> ./graphics/scaler/aspect.h:52:28: error: ‘buf’ was not declared in this
> scope
> 52 | int stretch200To240(uint8 *buf,
> | ^~~
> ./graphics/scaler/aspect.h:53:21: error: ‘uint32’ was not declared in
> this scope; did you mean ‘Uint32’?
> 53 | uint32 pitch,
> | ^~~~~~
> | Uint32
> ./graphics/scaler/aspect.h:54:21: error: expected primary-expression
> before ‘int’
> 54 | int width,
> | ^~~
> ./graphics/scaler/aspect.h:55:21: error: expected primary-expression
> before ‘int’
> 55 | int height,
> | ^~~
> ./graphics/scaler/aspect.h:56:21: error: expected primary-expression
> before ‘int’
> 56 | int srcX,
> | ^~~
> ./graphics/scaler/aspect.h:57:21: error: expected primary-expression
> before ‘int’
> 57 | int srcY,
> | ^~~
> ./graphics/scaler/aspect.h:58:21: error: expected primary-expression
> before ‘int’
> 58 | int origSrcY,
> | ^~~
> ./graphics/scaler/aspect.h:59:21: error: expected primary-expression
> before ‘bool’
> 59 | bool interpolate);
> | ^~~~
> ./graphics/scaler/aspect.h:59:37: error: expression list treated as
> compound expression in initializer [-fpermissive]
> 59 | bool interpolate);
> | ^
> ./graphics/scaler/aspect.h:61:28: error: ‘uint8’ was not declared in this
> scope; did you mean ‘Uint8’?
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> | ^~~~~
> | Uint8
> ./graphics/scaler/aspect.h:61:35: error: ‘buf’ was not declared in this
> scope
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> | ^~~
> ./graphics/scaler/aspect.h:61:40: error: ‘uint32’ was not declared in
> this scope; did you mean ‘Uint32’?
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> | ^~~~~~
> | Uint32
> ./graphics/scaler/aspect.h:61:54: error: expected primary-expression
> before ‘int’
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> | ^~~
> ./graphics/scaler/aspect.h:61:65: error: expected primary-expression
> before ‘int’
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> |
> ^~~
> ./graphics/scaler/aspect.h:61:77: error: expected primary-expression
> before ‘int’
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> |
> ^~~
> ./graphics/scaler/aspect.h:61:87: error: expected primary-expression
> before ‘int’
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> |
> ^~~
> ./graphics/scaler/aspect.h:61:97: error: expected primary-expression
> before ‘int’
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> |
> ^~~
> ./graphics/scaler/aspect.h:61:109: error: expression list treated as
> compound expression in initializer [-fpermissive]
> 61 | int stretch200To240Nearest(uint8 *buf, uint32 pitch, int width,
> int height, int srcX, int srcY, int origSrcY);
> |
> ^
> In file included from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/graphics/windowed.h:161:2: error: ‘frac_t’ does not name a
> type
> 161 | frac_t getDesiredGameAspectRatio() const {
> | ^~~~~~
> ./backends/graphics/windowed.h:373:41: error: ‘frac_t’ does not name a
> type
> 373 | void populateDisplayAreaDrawRect(const frac_t displayAspect, int
> originalWidth, Common::Rect &drawRect) const {
> | ^~~~~~
> ./backends/graphics/windowed.h: In member function ‘virtual void
> WindowedGraphicsManager::showOverlay()’:
> ./backends/graphics/windowed.h:63:23: error: ‘getOverlayWidth’ was not
> declared in this scope
> 63 | _activeArea.width = getOverlayWidth();
> | ^~~~~~~~~~~~~~~
> ./backends/graphics/windowed.h:64:24: error: ‘getOverlayHeight’ was not
> declared in this scope; did you mean ‘getOverlayFormat’?
> 64 | _activeArea.height = getOverlayHeight();
> | ^~~~~~~~~~~~~~~~
> | getOverlayFormat
> ./backends/graphics/windowed.h: In member function ‘virtual void
> WindowedGraphicsManager::hideOverlay()’:
> ./backends/graphics/windowed.h:74:23: error: ‘getWidth’ was not declared
> in this scope; did you mean ‘XTextWidth’?
> 74 | _activeArea.width = getWidth();
> | ^~~~~~~~
> | XTextWidth
> ./backends/graphics/windowed.h:75:24: error: ‘getHeight’ was not declared
> in this scope; did you mean ‘CWHeight’?
> 75 | _activeArea.height = getHeight();
> | ^~~~~~~~~
> | CWHeight
> ./backends/graphics/windowed.h: In member function ‘Common::Point
> WindowedGraphicsManager::convertVirtualToWindow(int, int) const’:
> ./backends/graphics/windowed.h:111:44: error: ‘const struct Common::Rect’
> has no member named ‘left’
> 111 | const int targetX = _activeArea.drawRect.left;
> | ^~~~
> ./backends/graphics/windowed.h:112:44: error: ‘const struct Common::Rect’
> has no member named ‘top’
> 112 | const int targetY = _activeArea.drawRect.top;
> | ^~~
> ./backends/graphics/windowed.h:113:48: error: ‘const struct Common::Rect’
> has no member named ‘width’
> 113 | const int targetWidth = _activeArea.drawRect.width();
> | ^~~~~
> ./backends/graphics/windowed.h:114:49: error: ‘const struct Common::Rect’
> has no member named ‘height’
> 114 | const int targetHeight = _activeArea.drawRect.height();
> | ^~~~~~
> ./backends/graphics/windowed.h:126:79: error: no matching function for
> call to ‘Common::Point::Point(int, int)’
> 126 | CLIP<int>(windowY, targetY, targetY +
> targetHeight - 1));
> |
> ^
> In file included from ./common/events.h:28,
> from ./backends/base-backend.h:27,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/rect.h:41:2: note: candidate: ‘Common::Point::Point()’
> 41 | Point() : x(0), y(0) {}
> | ^~~~~
> ./common/rect.h:41:2: note: candidate expects 0 arguments, 2 provided
> ./common/rect.h:37:8: note: candidate: ‘Common::Point::Point(const
> Common::Point&)’
> 37 | struct Point {
> | ^~~~~
> ./common/rect.h:37:8: note: candidate expects 1 argument, 2 provided
> In file included from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/graphics/windowed.h: In member function ‘Common::Point
> WindowedGraphicsManager::convertWindowToVirtual(int, int) const’:
> ./backends/graphics/windowed.h:135:44: error: ‘const struct Common::Rect’
> has no member named ‘left’
> 135 | const int sourceX = _activeArea.drawRect.left;
> | ^~~~
> ./backends/graphics/windowed.h:136:44: error: ‘const struct Common::Rect’
> has no member named ‘top’
> 136 | const int sourceY = _activeArea.drawRect.top;
> | ^~~
> ./backends/graphics/windowed.h:137:47: error: ‘const struct Common::Rect’
> has no member named ‘right’
> 137 | const int sourceMaxX = _activeArea.drawRect.right - 1;
> | ^~~~~
> ./backends/graphics/windowed.h:138:47: error: ‘const struct Common::Rect’
> has no member named ‘bottom’
> 138 | const int sourceMaxY = _activeArea.drawRect.bottom - 1;
> | ^~~~~~
> ./backends/graphics/windowed.h:139:48: error: ‘const struct Common::Rect’
> has no member named ‘width’
> 139 | const int sourceWidth = _activeArea.drawRect.width();
> | ^~~~~
> ./backends/graphics/windowed.h:140:49: error: ‘const struct Common::Rect’
> has no member named ‘height’
> 140 | const int sourceHeight = _activeArea.drawRect.height();
> | ^~~~~~
> ./backends/graphics/windowed.h:155:64: error: no matching function for
> call to ‘Common::Point::Point(int, int)’
> 155 | CLIP<int>(virtualY, 0, targetHeight - 1));
> | ^
> In file included from ./common/events.h:28,
> from ./backends/base-backend.h:27,
> from ./backends/modular-backend.h:26,
> from ./backends/platform/sdl/sdl.h:28,
> from backends/platform/sdl/sdl.cpp:25:
> ./common/rect.h:41:2: note: candidate: ‘Common::Point::Point()’
> 41 | Point() : x(0), y(0) {}
> | ^~~~~
> ./common/rect.h:41:2: note: candidate expects 0 arguments, 2 provided
> ./common/rect.h:37:8: note: candidate: ‘Common::Point::Point(const
> Common::Point&)’
> 37 | struct Point {
> | ^~~~~
> ./common/rect.h:37:8: note: candidate expects 1 argument, 2 provided
> In file included from ./backends/graphics/sdl/sdl-graphics.h:26,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/graphics/windowed.h: In member function ‘virtual void
> WindowedGraphicsManager::recalculateDisplayAreas()’:
> ./backends/graphics/windowed.h:199:31: error: ‘getDesiredGameAspectRatio’
> was not declared in this scope
> 199 | populateDisplayAreaDrawRect(getDesiredGameAspectRatio(),
> getWidth() * getGameRenderScale(), _gameDrawRect);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> ./backends/graphics/windowed.h:199:60: error: ‘getWidth’ was not declared
> in this scope; did you mean ‘XTextWidth’?
> 199 | populateDisplayAreaDrawRect(getDesiredGameAspectRatio(),
> getWidth() * getGameRenderScale(), _gameDrawRect);
> |
> ^~~~~~~~
> |
> XTextWidth
> ./backends/graphics/windowed.h:201:7: error: ‘getOverlayHeight’ was not
> declared in this scope; did you mean ‘getOverlayFormat’?
> 201 | if (getOverlayHeight()) {
> | ^~~~~~~~~~~~~~~~
> | getOverlayFormat
> ./backends/graphics/windowed.h:202:10: error: ‘frac_t’ does not name a
> type
> 202 | const frac_t overlayAspect = intToFrac(getOverlayWidth()) /
> getOverlayHeight();
> | ^~~~~~
> ./backends/graphics/windowed.h:203:32: error: ‘overlayAspect’ was not
> declared in this scope; did you mean ‘real2Aspect’?
> 203 | populateDisplayAreaDrawRect(overlayAspect, getOverlayWidth(),
> _overlayDrawRect);
> | ^~~~~~~~~~~~~
> | real2Aspect
> ./backends/graphics/windowed.h:203:47: error: ‘getOverlayWidth’ was not
> declared in this scope
> 203 | populateDisplayAreaDrawRect(overlayAspect, getOverlayWidth(),
> _overlayDrawRect);
> | ^~~~~~~~~~~~~~~
> ./backends/graphics/windowed.h:208:24: error: ‘getOverlayWidth’ was not
> declared in this scope
> 208 | _activeArea.width = getOverlayWidth();
> | ^~~~~~~~~~~~~~~
> ./backends/graphics/windowed.h:209:25: error: ‘getOverlayHeight’ was not
> declared in this scope; did you mean ‘getOverlayFormat’?
> 209 | _activeArea.height = getOverlayHeight();
> | ^~~~~~~~~~~~~~~~
> | getOverlayFormat
> ./backends/graphics/windowed.h:213:25: error: ‘getHeight’ was not
> declared in this scope; did you mean ‘CWHeight’?
> 213 | _activeArea.height = getHeight();
> | ^~~~~~~~~
> | CWHeight
> ./backends/graphics/windowed.h: In member function ‘virtual void
> WindowedGraphicsManager::warpMouse(int, int)’:
> ./backends/graphics/windowed.h:247:21: error: ‘const struct
> Common::Point’ has no member named ‘x’
> 247 | if (virtualCursor.x != x || virtualCursor.y != y) {
> | ^
> ./backends/graphics/windowed.h:247:45: error: ‘const struct
> Common::Point’ has no member named ‘y’
> 247 | if (virtualCursor.x != x || virtualCursor.y != y) {
> | ^
> ./backends/graphics/windowed.h:257:34: error: ‘const struct
> Common::Point’ has no member named ‘x’
> 257 | setMousePosition(windowCursor.x, windowCursor.y);
> | ^
> ./backends/graphics/windowed.h:257:50: error: ‘const struct
> Common::Point’ has no member named ‘y’
> 257 | setMousePosition(windowCursor.x, windowCursor.y);
> | ^
> ./backends/graphics/windowed.h:258:40: error: ‘const struct
> Common::Point’ has no member named ‘x’
> 258 | setSystemMousePosition(windowCursor.x, windowCursor.y);
> | ^
> ./backends/graphics/windowed.h:258:56: error: ‘const struct
> Common::Point’ has no member named ‘y’
> 258 | setSystemMousePosition(windowCursor.x, windowCursor.y);
> | ^
> ./backends/graphics/windowed.h: In member function ‘void
> WindowedGraphicsManager::populateDisplayAreaDrawRect(int, int,
> Common::Rect&) const’:
> ./backends/graphics/windowed.h:384:13: error: ‘intToFrac’ was not
> declared in this scope
> 384 | height = intToFrac(width) / displayAspect;
> | ^~~~~~~~~
> ./backends/graphics/windowed.h:395:4: error: ‘frac_t’ was not declared in
> this scope
> 395 | frac_t windowAspect = intToFrac(_windowWidth) / _windowHeight;
> | ^~~~~~
> ./backends/graphics/windowed.h:399:11: error: expected ‘;’ before ‘ratio’
> 399 | frac_t ratio = intToFrac(4) / 3;
> | ^~~~~~
> | ;
> ./backends/graphics/windowed.h:400:9: error: ‘windowAspect’ was not
> declared in this scope
> 400 | if (windowAspect < ratio)
> | ^~~~~~~~~~~~
> ./backends/graphics/windowed.h:400:24: error: ‘ratio’ was not declared in
> this scope
> 400 | if (windowAspect < ratio)
> | ^~~~~
> ./backends/graphics/windowed.h:401:15: error: ‘intToFrac’ was not
> declared in this scope
> 401 | height = intToFrac(width) / ratio;
> | ^~~~~~~~~
> ./backends/graphics/windowed.h:403:14: error: ‘fracToInt’ was not
> declared in this scope
> 403 | width = fracToInt(height * ratio);
> | ^~~~~~~~~
> ./backends/graphics/windowed.h:405:9: error: ‘windowAspect’ was not
> declared in this scope
> 405 | if (windowAspect < displayAspect)
> | ^~~~~~~~~~~~
> ./backends/graphics/windowed.h:406:15: error: ‘intToFrac’ was not
> declared in this scope
> 406 | height = intToFrac(width) / displayAspect;
> | ^~~~~~~~~
> ./backends/graphics/windowed.h:408:14: error: ‘fracToInt’ was not
> declared in this scope
> 408 | width = fracToInt(height * displayAspect);
> | ^~~~~~~~~
> ./backends/graphics/windowed.h:412:12: error: ‘struct Common::Rect’ has
> no member named ‘left’
> 412 | drawRect.left = ((_windowWidth - width) / 2) +
> _gameScreenShakeXOffset * width / getWidth();
> | ^~~~
> ./backends/graphics/windowed.h:412:84: error: ‘getWidth’ was not declared
> in this scope; did you mean ‘XTextWidth’?
> 412 | drawRect.left = ((_windowWidth - width) / 2) +
> _gameScreenShakeXOffset * width / getWidth();
> |
> ^~~~~~~~
> |
> XTextWidth
> ./backends/graphics/windowed.h:413:12: error: ‘struct Common::Rect’ has
> no member named ‘top’
> 413 | drawRect.top = ((_windowHeight - height) / 2) +
> _gameScreenShakeYOffset * height / getHeight();
> | ^~~
> ./backends/graphics/windowed.h:413:86: error: ‘getHeight’ was not
> declared in this scope; did you mean ‘CWHeight’?
> 413 | drawRect.top = ((_windowHeight - height) / 2) +
> _gameScreenShakeYOffset * height / getHeight();
> |
> ^~~~~~~~~
> |
> CWHeight
> In file included from ./backends/graphics/sdl/sdl-graphics.h:27,
> from ./backends/events/sdl/sdl-events.h:27,
> from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/platform/sdl/sdl-window.h: At global scope:
> ./backends/platform/sdl/sdl-window.h:114:51: error: ‘uint32’ has not been
> declared
> 114 | bool createOrUpdateWindow(int width, int height, uint32 flags);
> | ^~~~~~
> ./backends/platform/sdl/sdl-window.h:125:2: error: ‘uint32’ does not name
> a type; did you mean ‘Uint32’?
> 125 | uint32 _lastFlags;
> | ^~~~~~
> | Uint32
> In file included from ./backends/platform/sdl/sdl.h:30,
> from backends/platform/sdl/sdl.cpp:25:
> ./backends/events/sdl/sdl-events.h:187:2: error: ‘uint32’ does not name a
> type; did you mean ‘Uint32’?
> 187 | uint32 obtainUnicode(const SDL_Keysym keySym);
> | ^~~~~~
> | Uint32
> ./backends/events/sdl/sdl-events.h:206:2: error: ‘uint8’ does not name a
> type; did you mean ‘Uint8’?
> 206 | uint8 _lastHatPosition;
> | ^~~~~
> | Uint8
> In file included from backends/platform/sdl/sdl.cpp:25:
> ./backends/platform/sdl/sdl.h:80:10: error: ‘uint32’ does not name a
> type; did you mean ‘Uint32’?
> 80 | virtual uint32 getMillis(bool skipRecord = false) override;
> | ^~~~~~
> | Uint32
> In file included from ./common/stream.h:26,
> from ./common/savefile.h:28,
> from ./gui/EventRecorder.h:29,
> from backends/platform/sdl/sdl.cpp:27:
> ./common/endian.h:95:9: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 95 | inline uint16 SWAP_BYTES_16(const uint16 a) {
> | ^~~~~~
> | Uint16
> ./common/endian.h:131:14: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 131 | FORCEINLINE uint32 SWAP_BYTES_32(uint32 a) {
> | ^~~~~~
> | Uint32
> ./common/endian.h:177:14: error: ‘uint64’ does not name a type; did you
> mean ‘Uint64’?
> 177 | FORCEINLINE uint64 SWAP_BYTES_64(uint64 a) {
> | ^~~~~~
> | Uint64
> ./common/endian.h:232:14: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 232 | FORCEINLINE uint16 READ_UINT16(const void *ptr) {
> | ^~~~~~
> | Uint16
> ./common/endian.h:237:14: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 237 | FORCEINLINE uint32 READ_UINT32(const void *ptr) {
> | ^~~~~~
> | Uint32
> ./common/endian.h:242:43: error: ‘uint16’ has not been declared
> 242 | FORCEINLINE void WRITE_UINT16(void *ptr, uint16 value) {
> | ^~~~~~
> ./common/endian.h: In function ‘void WRITE_UINT16(void*, int)’:
> ./common/endian.h:243:24: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 243 | struct Unaligned16 { uint16 val; } __attribute__ ((__packed__,
> __may_alias__));
> | ^~~~~~
> | Uint16
> ./common/endian.h:244:25: error: ‘struct WRITE_UINT16(void*,
> int)::Unaligned16’ has no member named ‘val’
> 244 | ((Unaligned16 *)ptr)->val = value;
> | ^~~
> ./common/endian.h: At global scope:
> ./common/endian.h:247:43: error: ‘uint32’ has not been declared
> 247 | FORCEINLINE void WRITE_UINT32(void *ptr, uint32 value) {
> | ^~~~~~
> ./common/endian.h: In function ‘void WRITE_UINT32(void*, int)’:
> ./common/endian.h:248:24: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 248 | struct Unaligned32 { uint32 val; } __attribute__ ((__packed__,
> __may_alias__));
> | ^~~~~~
> | Uint32
> ./common/endian.h:249:25: error: ‘struct WRITE_UINT32(void*,
> int)::Unaligned32’ has no member named ‘val’
> 249 | ((Unaligned32 *)ptr)->val = value;
> | ^~~
> ./common/endian.h: At global scope:
> ./common/endian.h:252:14: error: ‘uint64’ does not name a type; did you
> mean ‘Uint64’?
> 252 | FORCEINLINE uint64 READ_UINT64(const void *ptr) {
> | ^~~~~~
> | Uint64
> ./common/endian.h:257:43: error: ‘uint64’ has not been declared
> 257 | FORCEINLINE void WRITE_UINT64(void *ptr, uint64 value) {
> | ^~~~~~
> ./common/endian.h: In function ‘void WRITE_UINT64(void*, int)’:
> ./common/endian.h:258:24: error: ‘uint64’ does not name a type; did you
> mean ‘Uint64’?
> 258 | struct Unaligned64 { uint64 val; } __attribute__((__packed__,
> __may_alias__));
> | ^~~~~~
> | Uint64
> ./common/endian.h:259:25: error: ‘struct WRITE_UINT64(void*,
> int)::Unaligned64’ has no member named ‘val’
> 259 | ((Unaligned64 *)ptr)->val = value;
> | ^~~
> In file included from ./common/stream.h:26,
> from ./common/savefile.h:28,
> from ./gui/EventRecorder.h:29,
> from backends/platform/sdl/sdl.cpp:27:
> ./common/endian.h: At global scope:
> ./common/endian.h:571:8: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 571 | inline uint32 READ_LE_UINT24(const void *ptr) {
> | ^~~~~~
> | Uint32
> ./common/endian.h:576:40: error: ‘uint32’ has not been declared
> 576 | inline void WRITE_LE_UINT24(void *ptr, uint32 value) {
> | ^~~~~~
> ./common/endian.h: In function ‘void WRITE_LE_UINT24(void*, int)’:
> ./common/endian.h:577:2: error: ‘uint8’ was not declared in this scope;
> did you mean ‘Uint8’?
> 577 | uint8 *b = (uint8 *)ptr;
> | ^~~~~
> | Uint8
> ./common/endian.h:577:9: error: ‘b’ was not declared in this scope
> 577 | uint8 *b = (uint8 *)ptr;
> | ^
> ./common/endian.h:577:21: error: expected primary-expression before ‘)’
> token
> 577 | uint8 *b = (uint8 *)ptr;
> | ^
> ./common/endian.h: At global scope:
> ./common/endian.h:583:8: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 583 | inline uint32 READ_BE_UINT24(const void *ptr) {
> | ^~~~~~
> | Uint32
> ./common/endian.h:588:40: error: ‘uint32’ has not been declared
> 588 | inline void WRITE_BE_UINT24(void *ptr, uint32 value) {
> | ^~~~~~
> ./common/endian.h: In function ‘void WRITE_BE_UINT24(void*, int)’:
> ./common/endian.h:589:2: error: ‘uint8’ was not declared in this scope;
> did you mean ‘Uint8’?
> 589 | uint8 *b = (uint8 *)ptr;
> | ^~~~~
> | Uint8
> ./common/endian.h:589:9: error: ‘b’ was not declared in this scope
> 589 | uint8 *b = (uint8 *)ptr;
> | ^
> ./common/endian.h:589:21: error: expected primary-expression before ‘)’
> token
> 589 | uint8 *b = (uint8 *)ptr;
> | ^
> ./common/endian.h: At global scope:
> ./common/endian.h:603:8: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 603 | inline int16 READ_LE_INT16(const void *ptr) {
> | ^~~~~
> | Uint16
> ./common/endian.h:607:39: error: ‘int16’ has not been declared
> 607 | inline void WRITE_LE_INT16(void *ptr, int16 value) {
> | ^~~~~
> ./common/endian.h: In function ‘void WRITE_LE_INT16(void*, int)’:
> ./common/endian.h:608:35: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 608 | WRITE_LE_UINT16(ptr, static_cast<uint16>(value));
> | ^~~~~~
> | Uint16
> ./common/endian.h:608:2: error: ‘WRITE_LE_UINT16’ was not declared in
> this scope; did you mean ‘WRITE_LE_INT16’?
> 608 | WRITE_LE_UINT16(ptr, static_cast<uint16>(value));
> | ^~~~~~~~~~~~~~~
> | WRITE_LE_INT16
> ./common/endian.h: At global scope:
> ./common/endian.h:611:8: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 611 | inline int16 READ_BE_INT16(const void *ptr) {
> | ^~~~~
> | Uint16
> ./common/endian.h:615:39: error: ‘int16’ has not been declared
> 615 | inline void WRITE_BE_INT16(void *ptr, int16 value) {
> | ^~~~~
> ./common/endian.h: In function ‘void WRITE_BE_INT16(void*, int)’:
> ./common/endian.h:616:35: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 616 | WRITE_BE_UINT16(ptr, static_cast<uint16>(value));
> | ^~~~~~
> | Uint16
> ./common/endian.h:616:2: error: ‘WRITE_BE_UINT16’ was not declared in
> this scope; did you mean ‘WRITE_BE_INT16’?
> 616 | WRITE_BE_UINT16(ptr, static_cast<uint16>(value));
> | ^~~~~~~~~~~~~~~
> | WRITE_BE_INT16
> ./common/endian.h: At global scope:
> ./common/endian.h:619:8: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 619 | inline int32 READ_LE_INT32(const void *ptr) {
> | ^~~~~
> | Uint32
> ./common/endian.h:623:39: error: ‘int32’ has not been declared
> 623 | inline void WRITE_LE_INT32(void *ptr, int32 value) {
> | ^~~~~
> ./common/endian.h: In function ‘void WRITE_LE_INT32(void*, int)’:
> ./common/endian.h:624:35: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 624 | WRITE_LE_UINT32(ptr, static_cast<uint32>(value));
> | ^~~~~~
> | Uint32
> ./common/endian.h:624:2: error: ‘WRITE_LE_UINT32’ was not declared in
> this scope; did you mean ‘WRITE_LE_INT32’?
> 624 | WRITE_LE_UINT32(ptr, static_cast<uint32>(value));
> | ^~~~~~~~~~~~~~~
> | WRITE_LE_INT32
> ./common/endian.h: At global scope:
> ./common/endian.h:627:8: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 627 | inline int32 READ_BE_INT32(const void *ptr) {
> | ^~~~~
> | Uint32
> ./common/endian.h:631:39: error: ‘int32’ has not been declared
> 631 | inline void WRITE_BE_INT32(void *ptr, int32 value) {
> | ^~~~~
> ./common/endian.h: In function ‘void WRITE_BE_INT32(void*, int)’:
> ./common/endian.h:632:35: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 632 | WRITE_BE_UINT32(ptr, static_cast<uint32>(value));
> | ^~~~~~
> | Uint32
> ./common/endian.h:632:2: error: ‘WRITE_BE_UINT32’ was not declared in
> this scope; did you mean ‘WRITE_BE_INT32’?
> 632 | WRITE_BE_UINT32(ptr, static_cast<uint32>(value));
> | ^~~~~~~~~~~~~~~
> | WRITE_BE_INT32
> In file included from ./common/savefile.h:28,
> from ./gui/EventRecorder.h:29,
> from backends/platform/sdl/sdl.cpp:27:
> ./common/stream.h: At global scope:
> ./common/stream.h:78:10: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 78 | virtual uint32 write(const void *dataPtr, uint32 dataSize) = 0;
> | ^~~~~~
> | Uint32
> ./common/stream.h:113:10: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 113 | virtual int32 pos() const = 0;
> | ^~~~~
> | Uint32
> ./common/stream.h:119:17: error: ‘byte’ has not been declared
> 119 | void writeByte(byte value) {
> | ^~~~
> ./common/stream.h:123:18: error: ‘int8’ has not been declared
> 123 | void writeSByte(int8 value) {
> | ^~~~
> ./common/stream.h:127:21: error: ‘uint16’ has not been declared
> 127 | void writeUint16LE(uint16 value) {
> | ^~~~~~
> ./common/stream.h:132:21: error: ‘uint32’ has not been declared
> 132 | void writeUint32LE(uint32 value) {
> | ^~~~~~
> ./common/stream.h:137:21: error: ‘uint64’ has not been declared
> 137 | void writeUint64LE(uint64 value) {
> | ^~~~~~
> ./common/stream.h:142:21: error: ‘uint16’ has not been declared
> 142 | void writeUint16BE(uint16 value) {
> | ^~~~~~
> ./common/stream.h:147:21: error: ‘uint32’ has not been declared
> 147 | void writeUint32BE(uint32 value) {
> | ^~~~~~
> ./common/stream.h:152:21: error: ‘uint64’ has not been declared
> 152 | void writeUint64BE(uint64 value) {
> | ^~~~~~
> ./common/stream.h:157:33: error: ‘int16’ has not been declared
> 157 | FORCEINLINE void writeSint16LE(int16 value) {
> | ^~~~~
> ./common/stream.h:161:33: error: ‘int32’ has not been declared
> 161 | FORCEINLINE void writeSint32LE(int32 value) {
> | ^~~~~
> ./common/stream.h:165:33: error: ‘int64’ has not been declared
> 165 | FORCEINLINE void writeSint64LE(int64 value) {
> | ^~~~~
> ./common/stream.h:169:33: error: ‘int16’ has not been declared
> 169 | FORCEINLINE void writeSint16BE(int16 value) {
> | ^~~~~
> ./common/stream.h:173:33: error: ‘int32’ has not been declared
> 173 | FORCEINLINE void writeSint32BE(int32 value) {
> | ^~~~~
> ./common/stream.h:177:33: error: ‘int64’ has not been declared
> 177 | FORCEINLINE void writeSint64BE(int64 value) {
> | ^~~~~
> ./common/stream.h:235:2: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 235 | uint32 writeStream(ReadStream *stream, uint32 dataSize);
> | ^~~~~~
> | Uint32
> ./common/stream.h:237:2: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 237 | uint32 writeStream(SeekableReadStream *stream);
> | ^~~~~~
> | Uint32
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeByte(int)’:
> ./common/stream.h:120:3: error: ‘write’ was not declared in this scope;
> did you mean ‘fwrite’?
> 120 | write(&value, 1);
> | ^~~~~
> | fwrite
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeSByte(int)’:
> ./common/stream.h:124:3: error: ‘write’ was not declared in this scope;
> did you mean ‘fwrite’?
> 124 | write(&value, 1);
> | ^~~~~
> | fwrite
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeUint16LE(int)’:
> ./common/stream.h:128:11: error: ‘TO_LE_16’ was not declared in this
> scope
> 128 | value = TO_LE_16(value);
> | ^~~~~~~~
> ./common/stream.h:129:3: error: ‘write’ was not declared in this scope;
> did you mean ‘fwrite’?
> 129 | write(&value, 2);
> | ^~~~~
> | fwrite
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeUint32LE(int)’:
> ./common/stream.h:133:11: error: ‘TO_LE_32’ was not declared in this
> scope
> 133 | value = TO_LE_32(value);
> | ^~~~~~~~
> ./common/stream.h:134:3: error: ‘write’ was not declared in this scope;
> did you mean ‘fwrite’?
> 134 | write(&value, 4);
> | ^~~~~
> | fwrite
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeUint64LE(int)’:
> ./common/stream.h:138:11: error: ‘TO_LE_64’ was not declared in this
> scope
> 138 | value = TO_LE_64(value);
> | ^~~~~~~~
> ./common/stream.h:139:3: error: ‘write’ was not declared in this scope;
> did you mean ‘fwrite’?
> 139 | write(&value, 8);
> | ^~~~~
> | fwrite
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeUint16BE(int)’:
> ./common/stream.h:143:11: error: ‘TO_BE_16’ was not declared in this
> scope
> 143 | value = TO_BE_16(value);
> | ^~~~~~~~
> ./common/stream.h:144:3: error: ‘write’ was not declared in this scope;
> did you mean ‘fwrite’?
> 144 | write(&value, 2);
> | ^~~~~
> | fwrite
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeUint32BE(int)’:
> ./common/stream.h:148:11: error: ‘TO_BE_32’ was not declared in this
> scope
> 148 | value = TO_BE_32(value);
> | ^~~~~~~~
> ./common/stream.h:149:3: error: ‘write’ was not declared in this scope;
> did you mean ‘fwrite’?
> 149 | write(&value, 4);
> | ^~~~~
> | fwrite
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeUint64BE(int)’:
> ./common/stream.h:153:11: error: ‘TO_BE_64’ was not declared in this
> scope
> 153 | value = TO_BE_64(value);
> | ^~~~~~~~
> ./common/stream.h:154:3: error: ‘write’ was not declared in this scope;
> did you mean ‘fwrite’?
> 154 | write(&value, 8);
> | ^~~~~
> | fwrite
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeSint16LE(int)’:
> ./common/stream.h:158:18: error: ‘uint16’ was not declared in this scope;
> did you mean ‘Uint16’?
> 158 | writeUint16LE((uint16)value);
> | ^~~~~~
> | Uint16
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeSint32LE(int)’:
> ./common/stream.h:162:18: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 162 | writeUint32LE((uint32)value);
> | ^~~~~~
> | Uint32
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeSint64LE(int)’:
> ./common/stream.h:166:18: error: ‘uint64’ was not declared in this scope;
> did you mean ‘Uint64’?
> 166 | writeUint64LE((uint64)value);
> | ^~~~~~
> | Uint64
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeSint16BE(int)’:
> ./common/stream.h:170:18: error: ‘uint16’ was not declared in this scope;
> did you mean ‘Uint16’?
> 170 | writeUint16BE((uint16)value);
> | ^~~~~~
> | Uint16
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeSint32BE(int)’:
> ./common/stream.h:174:18: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 174 | writeUint32BE((uint32)value);
> | ^~~~~~
> | Uint32
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeSint64BE(int)’:
> ./common/stream.h:178:18: error: ‘uint64’ was not declared in this scope;
> did you mean ‘Uint64’?
> 178 | writeUint64BE((uint64)value);
> | ^~~~~~
> | Uint64
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeFloatLE(float)’:
> ./common/stream.h:187:3: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 187 | uint32 n;
> | ^~~~~~
> | Uint32
> ./common/stream.h:189:11: error: ‘n’ was not declared in this scope; did
> you mean ‘yn’?
> 189 | memcpy(&n, &value, 4);
> | ^
> | yn
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeFloatBE(float)’:
> ./common/stream.h:200:3: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 200 | uint32 n;
> | ^~~~~~
> | Uint32
> ./common/stream.h:202:11: error: ‘n’ was not declared in this scope; did
> you mean ‘yn’?
> 202 | memcpy(&n, &value, 4);
> | ^
> | yn
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeDoubleLE(double)’:
> ./common/stream.h:212:3: error: ‘uint64’ was not declared in this scope;
> did you mean ‘Uint64’?
> 212 | uint64 n;
> | ^~~~~~
> | Uint64
> ./common/stream.h:214:11: error: ‘n’ was not declared in this scope; did
> you mean ‘yn’?
> 214 | memcpy(&n, &value, 8);
> | ^
> | yn
> ./common/stream.h: In member function ‘void
> Common::WriteStream::writeDoubleBE(double)’:
> ./common/stream.h:225:3: error: ‘uint64’ was not declared in this scope;
> did you mean ‘Uint64’?
> 225 | uint64 n;
> | ^~~~~~
> | Uint64
> ./common/stream.h:227:11: error: ‘n’ was not declared in this scope; did
> you mean ‘yn’?
> 227 | memcpy(&n, &value, 8);
> | ^
> | yn
> ./common/stream.h: At global scope:
> ./common/stream.h:266:20: error: ‘int32’ has not been declared
> 266 | virtual bool seek(int32 offset, int whence = SEEK_SET) = 0;
> | ^~~~~
> ./common/stream.h:274:10: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 274 | virtual int32 size() const = 0;
> | ^~~~~
> | Uint32
> ./common/stream.h:308:10: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 308 | virtual uint32 read(void *dataPtr, uint32 dataSize) = 0;
> | ^~~~~~
> | Uint32
> ./common/stream.h:320:2: error: ‘byte’ does not name a type
> 320 | byte readByte() {
> | ^~~~
> ./common/stream.h:332:14: error: ‘int8’ does not name a type; did you
> mean ‘Uint8’?
> 332 | FORCEINLINE int8 readSByte() {
> | ^~~~
> | Uint8
> ./common/stream.h:343:2: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 343 | uint16 readUint16LE() {
> | ^~~~~~
> | Uint16
> ./common/stream.h:356:2: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 356 | uint32 readUint32LE() {
> | ^~~~~~
> | Uint32
> ./common/stream.h:369:2: error: ‘uint64’ does not name a type; did you
> mean ‘Uint64’?
> 369 | uint64 readUint64LE() {
> | ^~~~~~
> | Uint64
> ./common/stream.h:382:2: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 382 | uint16 readUint16BE() {
> | ^~~~~~
> | Uint16
> ./common/stream.h:395:2: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 395 | uint32 readUint32BE() {
> | ^~~~~~
> | Uint32
> ./common/stream.h:408:2: error: ‘uint64’ does not name a type; did you
> mean ‘Uint64’?
> 408 | uint64 readUint64BE() {
> | ^~~~~~
> | Uint64
> ./common/stream.h:421:14: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 421 | FORCEINLINE int16 readSint16LE() {
> | ^~~~~
> | Uint16
> ./common/stream.h:432:14: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 432 | FORCEINLINE int32 readSint32LE() {
> | ^~~~~
> | Uint32
> ./common/stream.h:443:14: error: ‘int64’ does not name a type; did you
> mean ‘Uint64’?
> 443 | FORCEINLINE int64 readSint64LE() {
> | ^~~~~
> | Uint64
> ./common/stream.h:454:14: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 454 | FORCEINLINE int16 readSint16BE() {
> | ^~~~~
> | Uint16
> ./common/stream.h:465:14: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 465 | FORCEINLINE int32 readSint32BE() {
> | ^~~~~
> | Uint32
> ./common/stream.h:476:14: error: ‘int64’ does not name a type; did you
> mean ‘Uint64’?
> 476 | FORCEINLINE int64 readSint64BE() {
> | ^~~~~
> | Uint64
> ./common/stream.h:553:22: error: expected ‘;’ at end of member
> declaration
> 553 | SeekableReadStream *readStream(uint32 dataSize);
> | ^~~~~~~~~~
> | ;
> ./common/stream.h:553:39: error: expected ‘)’ before ‘dataSize’
> 553 | SeekableReadStream *readStream(uint32 dataSize);
> | ~ ^~~~~~~~~
> | )
> ./common/stream.h: In member function ‘float
> Common::ReadStream::readFloatLE()’:
> ./common/stream.h:488:3: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 488 | uint32 n = readUint32LE();
> | ^~~~~~
> | Uint32
> ./common/stream.h:491:15: error: ‘n’ was not declared in this scope; did
> you mean ‘yn’?
> 491 | memcpy(&f, &n, 4);
> | ^
> | yn
> ./common/stream.h: In member function ‘float
> Common::ReadStream::readFloatBE()’:
> ./common/stream.h:504:3: error: ‘uint32’ was not declared in this scope;
> did you mean ‘Uint32’?
> 504 | uint32 n = readUint32BE();
> | ^~~~~~
> | Uint32
> ./common/stream.h:507:15: error: ‘n’ was not declared in this scope; did
> you mean ‘yn’?
> 507 | memcpy(&f, &n, 4);
> | ^
> | yn
> ./common/stream.h: In member function ‘double
> Common::ReadStream::readDoubleLE()’:
> ./common/stream.h:521:3: error: ‘uint64’ was not declared in this scope;
> did you mean ‘Uint64’?
> 521 | uint64 n = readUint64LE();
> | ^~~~~~
> | Uint64
> ./common/stream.h:524:15: error: ‘n’ was not declared in this scope; did
> you mean ‘yn’?
> 524 | memcpy(&d, &n, 8);
> | ^
> | yn
> ./common/stream.h: In member function ‘double
> Common::ReadStream::readDoubleBE()’:
> ./common/stream.h:537:3: error: ‘uint64’ was not declared in this scope;
> did you mean ‘Uint64’?
> 537 | uint64 n = readUint64BE();
> | ^~~~~~
> | Uint64
> ./common/stream.h:540:15: error: ‘n’ was not declared in this scope; did
> you mean ‘yn’?
> 540 | memcpy(&d, &n, 8);
> | ^
> | yn
> ./common/stream.h: At global scope:
> ./common/stream.h:580:10: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 580 | virtual int32 pos() const = 0;
> | ^~~~~
> | Uint32
> ./common/stream.h:588:10: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 588 | virtual int32 size() const = 0;
> | ^~~~~
> | Uint32
> ./common/stream.h:605:20: error: ‘int32’ has not been declared
> 605 | virtual bool seek(int32 offset, int whence = SEEK_SET) = 0;
> | ^~~~~
> ./common/stream.h:611:20: error: ‘uint32’ has not been declared
> 611 | virtual bool skip(uint32 offset) { return seek(offset,
> SEEK_CUR); }
> | ^~~~~~
> ./common/stream.h:677:2: error: ‘uint16’ does not name a type; did you
> mean ‘Uint16’?
> 677 | uint16 readUint16() {
> | ^~~~~~
> | Uint16
> ./common/stream.h:683:2: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 683 | uint32 readUint32() {
> | ^~~~~~
> | Uint32
> ./common/stream.h:689:2: error: ‘uint64’ does not name a type; did you
> mean ‘Uint64’?
> 689 | uint64 readUint64() {
> | ^~~~~~
> | Uint64
> ./common/stream.h:695:14: error: ‘int16’ does not name a type; did you
> mean ‘Uint16’?
> 695 | FORCEINLINE int16 readSint16() {
> | ^~~~~
> | Uint16
> ./common/stream.h:699:14: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 699 | FORCEINLINE int32 readSint32() {
> | ^~~~~
> | Uint32
> ./common/stream.h:703:14: error: ‘int64’ does not name a type; did you
> mean ‘Uint64’?
> 703 | FORCEINLINE int64 readSint64() {
> | ^~~~~
> | Uint64
> In file included from ./gui/EventRecorder.h:29,
> from backends/platform/sdl/sdl.cpp:27:
> ./common/savefile.h:59:10: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 59 | virtual uint32 write(const void *dataPtr, uint32 dataSize);
> | ^~~~~~
> | Uint32
> ./common/savefile.h:60:10: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 60 | virtual int32 pos() const;
> | ^~~~~
> | Uint32
> In file included from ./engines/metaengine.h:31,
> from ./engines/advancedDetector.h:26,
> from ./gui/EventRecorder.h:32,
> from backends/platform/sdl/sdl.cpp:27:
> ./engines/game.h:95:2: error: ‘int32’ does not name a type; did you mean
> ‘Uint32’?
> 95 | int32 size;
> | ^~~~~
> | Uint32
> ./engines/game.h: In constructor ‘FileProperties::FileProperties()’:
> ./engines/game.h:98:21: error: class ‘FileProperties’ does not have any
> field named ‘size’
> 98 | FileProperties() : size(-1) {}
> | ^~~~
> In file included from ./engines/metaengine.h:31,
> from ./engines/advancedDetector.h:26,
> from ./gui/EventRecorder.h:32,
> from backends/platform/sdl/sdl.cpp:27:
> ./engines/game.h: At global scope:
> ./engines/game.h:236:59: error: ‘uint32’ has not been declared
> 236 | Common::String generateUnknownGameReport(bool translate, uint32
> wordwrapAt = 0) const;
> | ^~~~~~
> ./engines/game.h:251:109: error: ‘uint32’ has not been declared
> 251 | Common::String generateUnknownGameReport(const DetectedGames
> &detectedGames, bool translate, bool fullPath, uint32 wordwrapAt = 0);
> |
> ^~~~~~
> ./engines/game.h:252:107: error: ‘uint32’ has not been declared
> 252 | Common::String generateUnknownGameReport(const DetectedGame
> &detectedGame, bool translate, bool fullPath, uint32 wordwrapAt = 0);
> |
> ^~~~~~
> In file included from ./engines/metaengine.h:32,
> from ./engines/advancedDetector.h:26,
> from ./gui/EventRecorder.h:32,
> from backends/platform/sdl/sdl.cpp:27:
> ./engines/savestate.h:176:19: error: ‘uint32’ has not been declared
> 176 | void setPlayTime(uint32 msecs);
> | ^~~~~~
> ./engines/savestate.h:192:2: error: ‘uint32’ does not name a type; did
> you mean ‘Uint32’?
> 192 | uint32 getPlayTimeMSecs() const { return _playTimeMSecs; }
> | ^~~~~~
> | Uint32
> ./engines/savestate.h:249:2: error: ‘uint32’ does not name a type; did
> you mean ‘Uint32’?
> 249 | uint32 _playTimeMSecs;
> | ^~~~~~
> | Uint32
> In file included from ./engines/advancedDetector.h:26,
> from ./gui/EventRecorder.h:32,
> from backends/platform/sdl/sdl.cpp:27:
> ./engines/metaengine.h:74:2: error: ‘uint8’ does not name a type; did you
> mean ‘Uint8’?
> 74 | uint8 version;
> | ^~~~~
> | Uint8
> ./engines/metaengine.h:77:2: error: ‘uint32’ does not name a type; did
> you mean ‘Uint32’?
> 77 | uint32 date;
> | ^~~~~~
> | Uint32
> ./engines/metaengine.h:78:2: error: ‘uint16’ does not name a type; did
> you mean ‘Uint16’?
> 78 | uint16 time;
> | ^~~~~~
> | Uint16
> ./engines/metaengine.h:79:2: error: ‘uint32’ does not name a type; did
> you mean ‘Uint32’?
> 79 | uint32 playtime;
> | ^~~~~~
> | Uint32
> ./engines/metaengine.h: In constructor
> ‘ExtendedSavegameHeader::ExtendedSavegameHeader()’:
> ./engines/metaengine.h:85:3: error: ‘version’ was not declared in this
> scope
> 85 | version = 0;
> | ^~~~~~~
> ./engines/metaengine.h:86:3: error: ‘date’ was not declared in this scope
> 86 | date = 0;
> | ^~~~
> ./engines/metaengine.h:87:3: error: ‘time’ was not declared in this
> scope; did you mean ‘Time’?
> 87 | time = 0;
> | ^~~~
> | Time
> ./engines/metaengine.h:88:3: error: ‘playtime’ was not declared in this
> scope
> 88 | playtime = 0;
> | ^~~~~~~~
> In file included from ./engines/advancedDetector.h:26,
> from ./gui/EventRecorder.h:32,
> from backends/platform/sdl/sdl.cpp:27:
> ./engines/metaengine.h: At global scope:
> ./engines/metaengine.h:388:64: error: ‘uint32’ has not been declared
> 388 | static void appendExtendedSave(Common::OutSaveFile *saveFile,
> uint32 playtime,
> |
> ^~~~~~
> In file included from ./engines/advancedDetector.h:27,
> from ./gui/EventRecorder.h:32,
> from backends/platform/sdl/sdl.cpp:27:
> ./engines/engine.h:126:2: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 126 | uint32 _pauseStartTime;
> | ^~~~~~
> | Uint32
> ./engines/engine.h:132:2: error: ‘int32’ does not name a type; did you
> mean ‘Uint32’?
> 132 | int32 _engineStartTime;
> | ^~~~~
> | Uint32
> ./engines/engine.h:423:2: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 423 | uint32 getTotalPlayTime() const;
> | ^~~~~~
> | Uint32
> ./engines/engine.h:434:24: error: ‘uint32’ has not been declared
> 434 | void setTotalPlayTime(uint32 time = 0);
> | ^~~~~~
> In file included from ./gui/EventRecorder.h:32,
> from backends/platform/sdl/sdl.cpp:27:
> ./engines/advancedDetector.h:45:2: error: ‘uint16’ does not name a type;
> did you mean ‘Uint16’?
> 45 | uint16 fileType; ///< Optional. Not used during detection,
> only by engines.
> | ^~~~~~
> | Uint16
> ./engines/advancedDetector.h:47:2: error: ‘int32’ does not name a type;
> did you mean ‘Uint32’?
> 47 | int32 fileSize; ///< Size of the described file. Set to -1
> to ignore.
> | ^~~~~
> | Uint32
> In file included from ./gui/EventRecorder.h:32,
> from backends/platform/sdl/sdl.cpp:27:
> ./engines/advancedDetector.h:95:2: error: ‘uint32’ does not name a type;
> did you mean ‘Uint32’?
> 95 | uint32 flags;
> | ^~~~~~
> | Uint32
> ./engines/advancedDetector.h:179:8: error: ‘byte’ does not name a type
> 179 | const byte *_gameDescriptors;
> | ^~~~
> ./engines/advancedDetector.h:213:2: error: ‘uint32’ does not name a type;
> did you mean ‘Uint32’?
> 213 | uint32 _flags;
> | ^~~~~~
> | Uint32
> ./engines/advancedDetector.h:226:2: error: ‘uint32’ does not name a type;
> did you mean ‘Uint32’?
> 226 | uint32 _maxScanDepth;
> | ^~~~~~
> | Uint32
> In file included from backends/platform/sdl/sdl.cpp:31:
> ./common/encoding.h:229:10: error: ‘uint32’ does not name a type; did you
> mean ‘Uint32’?
> 229 | static uint32 *transliterateUTF32(const uint32 *string, size_t
> length);
> | ^~~~~~
> | Uint32
> In file included from ./backends/audiocd/default/default-audiocd.h:26,
> from backends/platform/sdl/sdl.cpp:41:
> ./backends/audiocd/audiocd.h:85:25: error: ‘byte’ has not been declared
> 85 | virtual void setVolume(byte volume) = 0;
> | ^~~~
> ./backends/audiocd/audiocd.h:90:26: error: ‘int8’ has not been declared
> 90 | virtual void setBalance(int8 balance) = 0;
> | ^~~~
> In file included from backends/platform/sdl/sdl.cpp:41:
> ./backends/audiocd/default/default-audiocd.h:47:25: error: ‘byte’ has not
> been declared
> 47 | virtual void setVolume(byte volume);
> | ^~~~
> ./backends/audiocd/default/default-audiocd.h:48:26: error: ‘int8’ has not
> been declared
> 48 | virtual void setBalance(int8 balance);
> | ^~~~
> In file included from backends/platform/sdl/sdl.cpp:47:
> ./backends/events/sdl/legacy-sdl-events.h:48:3: error: ‘int32’ does not
> name a type; did you mean ‘Uint32’?
> 48 | int32 x, y;
> | ^~~~~
> | Uint32
> ./backends/events/sdl/legacy-sdl-events.h:49:3: error: ‘int16’ does not
> name a type; did you mean ‘Uint16’?
> 49 | int16 x_vel, y_vel, x_max, y_max, x_down_count, y_down_count,
> joy_x, joy_y;
> | ^~~~~
> | Uint16
> ./backends/events/sdl/legacy-sdl-events.h:50:3: error: ‘uint32’ does not
> name a type; did you mean ‘Uint32’?
> 50 | uint32 last_time, delay_time, x_down_time, y_down_time;
> | ^~~~~~
> | Uint32
> ./backends/events/sdl/legacy-sdl-events.h:73:39: error: ‘int16’ has not
> been declared
> 73 | virtual bool handleAxisToMouseMotion(int16 xAxis, int16 yAxis);
> | ^~~~~
> ./backends/events/sdl/legacy-sdl-events.h:73:52: error: ‘int16’ has not
> been declared
> 73 | virtual bool handleAxisToMouseMotion(int16 xAxis, int16 yAxis);
> | ^~~~~
> ./backends/events/sdl/legacy-sdl-events.h:79:2: error: ‘int16’ does not
> name a type; did you mean ‘Uint16’?
> 79 | int16 computeJoystickMouseSpeedFactor() const;
> | ^~~~~
> | Uint16
> ./backends/events/sdl/legacy-sdl-events.h:84:30: error: ‘int16’ has not
> been declared
> 84 | void resetKeyboardEmulation(int16 x_max, int16 y_max);
> | ^~~~~
> ./backends/events/sdl/legacy-sdl-events.h:84:43: error: ‘int16’ has not
> been declared
> 84 | void resetKeyboardEmulation(int16 x_max, int16 y_max);
> | ^~~~~
> In file included from backends/platform/sdl/sdl.cpp:48:
> ./backends/keymapper/hardware-input.h:35:9: error: ‘uint32’ does not name
> a type; did you mean ‘Uint32’?
> 35 | typedef uint32 HardwareInputCode;
> | ^~~~~~
> | Uint32
> ./backends/keymapper/hardware-input.h:70:2: error: ‘HardwareInputCode’
> does not name a type; did you mean ‘HardwareInputType’?
> 70 | HardwareInputCode inputCode;
> | ^~~~~~~~~~~~~~~~~
> | HardwareInputType
> ./backends/keymapper/hardware-input.h:82:53: error: ‘HardwareInputCode’
> has not been declared
> 82 | static HardwareInput createCustom(const String &i,
> HardwareInputCode ic, const String &desc) {
> |
> ^~~~~~~~~~~~~~~~~
> ./backends/keymapper/hardware-input.h:96:61: error: ‘uint8’ has not been
> declared
> 96 | static HardwareInput createJoystickButton(const String &i, uint8
> button, const String &desc) {
> | ^~~~~
> ./backends/keymapper/hardware-input.h:100:63: error: ‘uint8’ has not been
> declared
> 100 | static HardwareInput createJoystickHalfAxis(const String &i,
> uint8 axis, bool positiveHalf, const String &desc) {
> |
> ^~~~~
> ./backends/keymapper/hardware-input.h:104:52: error: ‘uint8’ has not been
> declared
> 104 | static HardwareInput createMouse(const String &i, uint8 button,
> const String &desc) {
> | ^~~~~
> ./backends/keymapper/hardware-input.h:109:77: error: ‘HardwareInputCode’
> has not been declared
> 109 | static HardwareInput createSimple(HardwareInputType type, const
> String &i, HardwareInputCode ic, const String &desc) {
> |
> ^~~~~~~~~~~~~~~~~
> ./backends/keymapper/hardware-input.h: In constructor
> ‘Common::HardwareInput::HardwareInput()’:
> ./backends/keymapper/hardware-input.h:80:5: error: class
> ‘Common::HardwareInput’ does not have any field named ‘inputCode’
> 80 | : inputCode(0), type(kHardwareInputTypeInvalid) { }
> | ^~~~~~~~~
> ./backends/keymapper/hardware-input.h: In static member function ‘static
> Common::HardwareInput Common::HardwareInput::createKeyboard(const
> Common::String&, Common::KeyState, const Common::String&)’:
> ./backends/keymapper/hardware-input.h:91:17: error: ‘struct
> Common::HardwareInput’ has no member named ‘inputCode’
> 91 | hardwareInput.inputCode = 0;
> | ^~~~~~~~~
> ./backends/keymapper/hardware-input.h: In static member function ‘static
> Common::HardwareInput
> Common::HardwareInput::createSimple(Common::HardwareInputType, const
> Common::String&, int, const Common::String&)’:
> ./backends/keymapper/hardware-input.h:114:17: error: ‘struct
> Common::HardwareInput’ has no member named ‘inputCode’
> 114 | hardwareInput.inputCode = ic;
> | ^~~~~~~~~
> ./backends/keymapper/hardware-input.h: At global scope:
> ./backends/keymapper/hardware-input.h:124:2: error: ‘HardwareInputCode’
> does not name a type; did you mean ‘HardwareInputType’?
> 124 | HardwareInputCode code;
> | ^~~~~~~~~~~~~~~~~
> | HardwareInputType
> ./backends/keymapper/hardware-input.h:127:94: error: ‘HardwareInputCode’
> has not been declared
> 127 | static const HardwareInputTableEntry *findWithCode(const
> HardwareInputTableEntry *_entries, HardwareInputCode code) {
> |
> ^~~~~~~~~~~~~~~~~
> ./backends/keymapper/hardware-input.h: In static member function ‘static
> const Common::HardwareInputTableEntry*
> Common::HardwareInputTableEntry::findWithCode(const
> Common::HardwareInputTableEntry*, int)’:
> ./backends/keymapper/hardware-input.h:129:12: error: ‘const struct
> Common::HardwareInputTableEntry’ has no member named ‘code’
> 129 | if (hw->code == code) {
> | ^~~~
> ./backends/keymapper/hardware-input.h: At global scope:
> ./backends/keymapper/hardware-input.h:159:2: error: ‘byte’ does not name
> a type
> 159 | byte flag;
> | ^~~~
> ./backends/keymapper/hardware-input.h:173:2: error: ‘HardwareInputCode’
> does not name a type; did you mean ‘HardwareInputType’?
> 173 | HardwareInputCode code;
> | ^~~~~~~~~~~~~~~~~
> | HardwareInputType
> ./backends/keymapper/hardware-input.h:177:76: error: ‘HardwareInputCode’
> has not been declared
> 177 | static const AxisTableEntry *findWithCode(const AxisTableEntry
> *_entries, HardwareInputCode code) {
> |
> ^~~~~~~~~~~~~~~~~
> ./backends/keymapper/hardware-input.h: In static member function ‘static
> const Common::AxisTableEntry* Common::AxisTableEntry::findWithCode(const
> Common::AxisTableEntry*, int)’:
> ./backends/keymapper/hardware-input.h:179:12: error: ‘const struct
> Common::AxisTableEntry’ has no member named ‘code’
> 179 | if (hw->code == code) {
> | ^~~~
> In file included from ./backends/timer/default/default-timer.h:28,
> from ./backends/timer/sdl/sdl-timer.h:26,
> from backends/platform/sdl/sdl.cpp:50:
> ./common/timer.h: At global scope:
> ./common/timer.h:51:48: error: ‘int32’ has not been declared
> 51 | virtual bool installTimerProc(TimerProc proc, int32 interval,
> void *refCon, const Common::String &id) = 0;
> | ^~~~~
> In file included from ./backends/timer/sdl/sdl-timer.h:26,
> from backends/platform/sdl/sdl.cpp:50:
> ./backends/timer/default/default-timer.h:41:2: error: ‘uint32’ does not
> name a type; did you mean ‘Uint32’?
> 41 | uint32 _timerCallbackNext;
> | ^~~~~~
> | Uint32
> ./backends/timer/default/default-timer.h:46:48: error: ‘int32’ has not
> been declared
> 46 | virtual bool installTimerProc(TimerProc proc, int32 interval,
> void *refCon, const Common::String &id);
> | ^~~~~
> ./backends/timer/default/default-timer.h:58:19: error: ‘uint32’ has not
> been declared
> 58 | void checkTimers(uint32 interval = 10);
> | ^~~~~~
> In file included from backends/platform/sdl/sdl.cpp:51:
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:103:10: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 103 | virtual int16 getHeight() const override;
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:104:10: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 104 | virtual int16 getWidth() const override;
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:108:32: error:
> ‘byte’ does not name a type
> 108 | virtual void setPalette(const byte *colors, uint start, uint
> num) override;
> | ^~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:109:27: error:
> ‘byte’ has not been declared
> 109 | virtual void grabPalette(byte *colors, uint start, uint num)
> const override;
> | ^~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:121:26: error:
> ‘uint32’ has not been declared
> 121 | virtual void fillScreen(uint32 col) override;
> | ^~~~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:130:10: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 130 | virtual int16 getOverlayHeight() const override { return
> _videoMode.overlayHeight; }
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:131:10: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 131 | virtual int16 getOverlayWidth() const override { return
> _videoMode.overlayWidth; }
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:133:91: error:
> ‘uint32’ has not been declared
> 133 | virtual void setMouseCursor(const void *buf, uint w, uint h, int
> hotspotX, int hotspotY, uint32 keycolor, bool dontScale = false, const
> Graphics::PixelFormat *format = NULL) override;
> |
> ^~~~~~
> In file included from backends/platform/sdl/sdl.cpp:51:
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:134:38: error:
> ‘byte’ does not name a type
> 134 | virtual void setCursorPalette(const byte *colors, uint start,
> uint num) override;
> | ^~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:153:2: error:
> ‘uint8’ does not name a type; did you mean ‘Uint8’?
> 153 | uint8 _osdMessageAlpha;
> | ^~~~~
> | Uint8
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:155:2: error:
> ‘uint32’ does not name a type; did you mean ‘Uint32’?
> 155 | uint32 _osdMessageFadeStartTime;
> | ^~~~~~
> | Uint32
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:349:3: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 349 | int16 w, h;
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:350:3: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 350 | int16 hotX, hotY;
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:354:3: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 354 | int16 rW, rH;
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:355:3: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 355 | int16 rHotX, rHotY;
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:359:3: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 359 | int16 vW, vH;
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:360:3: error:
> ‘int16’ does not name a type; did you mean ‘Uint16’?
> 360 | int16 vHotX, vHotY;
> | ^~~~~
> | Uint16
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:368:2: error: ‘byte’
> does not name a type
> 368 | byte *_mouseData;
> | ^~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:374:2: error: ‘byte’
> does not name a type
> 374 | byte _mouseKeyColor;
> | ^~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h: In constructor
> ‘SurfaceSdlGraphicsManager::MousePos::MousePos()’:
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:362:16: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named ‘w’
> 362 | MousePos() : w(0), h(0), hotX(0), hotY(0),
> | ^
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:362:22: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named ‘h’
> 362 | MousePos() : w(0), h(0), hotX(0), hotY(0),
> | ^
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:362:28: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named
> ‘hotX’
> 362 | MousePos() : w(0), h(0), hotX(0), hotY(0),
> | ^~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:362:37: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named
> ‘hotY’
> 362 | MousePos() : w(0), h(0), hotX(0), hotY(0),
> | ^~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:363:6: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named ‘rW’
> 363 | rW(0), rH(0), rHotX(0), rHotY(0), vW(0), vH(0),
> | ^~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:363:13: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named ‘rH’
> 363 | rW(0), rH(0), rHotX(0), rHotY(0), vW(0), vH(0),
> | ^~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:363:20: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named
> ‘rHotX’
> 363 | rW(0), rH(0), rHotX(0), rHotY(0), vW(0), vH(0),
> | ^~~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:363:30: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named
> ‘rHotY’
> 363 | rW(0), rH(0), rHotX(0), rHotY(0), vW(0), vH(0),
> | ^~~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:363:40: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named ‘vW’
> 363 | rW(0), rH(0), rHotX(0), rHotY(0), vW(0), vH(0),
> | ^~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:363:47: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named ‘vH’
> 363 | rW(0), rH(0), rHotX(0), rHotY(0), vW(0), vH(0),
> | ^~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:364:6: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named
> ‘vHotX’
> 364 | vHotX(0), vHotY(0)
> | ^~~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:364:16: error: class
> ‘SurfaceSdlGraphicsManager::MousePos’ does not have any field named
> ‘vHotY’
> 364 | vHotX(0), vHotY(0)
> | ^~~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h: In member function
> ‘Common::Point SurfaceSdlGraphicsManager::convertOverlayToGame(int, int)
> const’:
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:435:7: error:
> ‘getOverlayWidth’ was not declared in this scope
> 435 | if (getOverlayWidth() == 0 || getOverlayHeight() == 0) {
> | ^~~~~~~~~~~~~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:435:33: error:
> ‘getOverlayHeight’ was not declared in this scope; did you mean
> ‘getOverlayFormat’?
> 435 | if (getOverlayWidth() == 0 || getOverlayHeight() == 0) {
> | ^~~~~~~~~~~~~~~~
> | getOverlayFormat
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:439:28: error:
> ‘getWidth’ was not declared in this scope; did you mean ‘getWindow’?
> 439 | return Common::Point(x * getWidth() / getOverlayWidth(),
> | ^~~~~~~~
> | getWindow
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:439:41: error:
> ‘getOverlayWidth’ was not declared in this scope
> 439 | return Common::Point(x * getWidth() / getOverlayWidth(),
> | ^~~~~~~~~~~~~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:440:13: error:
> ‘getHeight’ was not declared in this scope; did you mean ‘CWHeight’?
> 440 | y * getHeight() / getOverlayHeight());
> | ^~~~~~~~~
> | CWHeight
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:440:27: error:
> ‘getOverlayHeight’ was not declared in this scope; did you mean
> ‘getOverlayFormat’?
> 440 | y * getHeight() / getOverlayHeight());
> | ^~~~~~~~~~~~~~~~
> | getOverlayFormat
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h: In member function
> ‘Common::Point SurfaceSdlGraphicsManager::convertGameToOverlay(int, int)
> const’:
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:448:7: error:
> ‘getWidth’ was not declared in this scope; did you mean ‘getWindow’?
> 448 | if (getWidth() == 0 || getHeight() == 0) {
> | ^~~~~~~~
> | getWindow
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:448:26: error:
> ‘getHeight’ was not declared in this scope; did you mean ‘CWHeight’?
> 448 | if (getWidth() == 0 || getHeight() == 0) {
> | ^~~~~~~~~
> | CWHeight
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:452:28: error:
> ‘getOverlayWidth’ was not declared in this scope
> 452 | return Common::Point(x * getOverlayWidth() / getWidth(),
> | ^~~~~~~~~~~~~~~
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:452:48: error:
> ‘getWidth’ was not declared in this scope; did you mean ‘getWindow’?
> 452 | return Common::Point(x * getOverlayWidth() / getWidth(),
> | ^~~~~~~~
> | getWindow
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:453:13: error:
> ‘getOverlayHeight’ was not declared in this scope; did you mean
> ‘getOverlayFormat’?
> 453 | y * getOverlayHeight() / getHeight());
> | ^~~~~~~~~~~~~~~~
> | getOverlayFormat
> ./backends/graphics/surfacesdl/surfacesdl-graphics.h:453:34: error:
> ‘getHeight’ was not declared in this scope; did you mean ‘CWHeight’?
> 453 | y * getOverlayHeight() / getHeight());
> | ^~~~~~~~~
> | CWHeight
> backends/platform/sdl/sdl.cpp: In member function ‘virtual void
> OSystem_SDL::initSDL()’:
> backends/platform/sdl/sdl.cpp:335:3: error: ‘uint32’ was not declared in
> this scope; did you mean ‘Uint32’?
> 335 | uint32 sdlFlags = SDL_INIT_VIDEO;
> | ^~~~~~
> | Uint32
> backends/platform/sdl/sdl.cpp:338:4: error: ‘sdlFlags’ was not declared
> in this scope
> 338 | sdlFlags |= SDL_INIT_NOPARACHUTE;
> | ^~~~~~~~
> backends/platform/sdl/sdl.cpp:341:16: error: ‘sdlFlags’ was not declared
> in this scope
> 341 | if (SDL_Init(sdlFlags) == -1)
> | ^~~~~~~~
> backends/platform/sdl/sdl.cpp: In member function ‘virtual void
> OSystem_SDL::setWindowCaption(const char*)’:
> backends/platform/sdl/sdl.cpp:374:2: error: ‘byte’ was not declared in
> this scope
> 374 | byte c;
> | ^~~~
> backends/platform/sdl/sdl.cpp:378:10: error: ‘c’ was not declared in this
> scope; did you mean ‘_c’?
> 378 | while ((c = *(const byte *)caption++)) {
> | ^
> | _c
> backends/platform/sdl/sdl.cpp:378:22: error: ISO C++ forbids declaration
> of ‘type name’ with no type [-fpermissive]
> 378 | while ((c = *(const byte *)caption++)) {
> | ^~~~
> backends/platform/sdl/sdl.cpp:378:16: error: expected primary-expression
> before ‘const’
> 378 | while ((c = *(const byte *)caption++)) {
> | ^~~~~
> backends/platform/sdl/sdl.cpp:378:16: error: expected ‘)’ before ‘const’
> 378 | while ((c = *(const byte *)caption++)) {
> | ~^~~~~
> | )
> backends/platform/sdl/sdl.cpp:385:3: error: expected ‘)’ before ‘_window’
> 385 | }
> | ^
> | )
> 386 |
> 387 | _window->setWindowCaption(cap);
> | ~~~~~~~
> backends/platform/sdl/sdl.cpp:378:9: note: to match this ‘(’
> 378 | while ((c = *(const byte *)caption++)) {
> | ^
> backends/platform/sdl/sdl.cpp:387:32: error: expected ‘)’ before ‘;’
> token
> 387 | _window->setWindowCaption(cap);
> | ^
> | )
> backends/platform/sdl/sdl.cpp:378:8: note: to match this ‘(’
> 378 | while ((c = *(const byte *)caption++)) {
> | ^
> backends/platform/sdl/sdl.cpp: At global scope:
> backends/platform/sdl/sdl.cpp:537:1: error: ‘uint32’ does not name a
> type; did you mean ‘Uint32’?
> 537 | uint32 OSystem_SDL::getMillis(bool skipRecord) {
> | ^~~~~~
> | Uint32
> make: *** [Makefile.common:122: backends/platform/sdl/sdl.o] Error 1
New description:
Not sure what the error is ...
./configure --prefix=/home/Programs/Scummvm/2.2.0/
Running ScummVM configure...
Looking for C++ compiler... g++
Checking for compiler version... 10.3.0, ok
Building as C++11... no
Checking best debug mode... -g + split DWARF + Gold + var tracking
Checking for whether C++ compiler accepts -Wglobal-constructors... no
Checking for whether C++ compiler accepts -Wno-undefined-var-template...
no
Checking for whether C++ compiler accepts -Wno-pragma-pack... no
Checking endianness... /usr/bin/ld.gold: warning:
/home/Programs/Gcc/10.3.0/lib/gcc/x86_64-pc-linux-gnu/10.3.0/crtbegin.o:
unknown program property type 0xc0010002 in .note.gnu.property section
/usr/bin/ld.gold: warning: /home/Programs/Gcc/10.3.0/lib/gcc/x86_64-pc-
linux-gnu/10.3.0/crtbegin.o: unknown program property type 0xc0010001 in
.note.gnu.property section
/usr/bin/ld.gold: warning: /home/Temp/cchxxKUI.o: unknown program property
type 0xc0010002 in .note.gnu.property section
/usr/bin/ld.gold: warning: /home/Temp/cchxxKUI.o: unknown program property
type 0xc0010001 in .note.gnu.property section
/usr/bin/ld.gold: warning: /home/Programs/Gcc/10.3.0/lib/gcc/x86_64-pc-
linux-gnu/10.3.0/crtend.o: unknown program property type 0xc0010002 in
.note.gnu.property section
/usr/bin/ld.gold: warning: /home/Programs/Gcc/10.3.0/lib/gcc/x86_64-pc-
linux-gnu/10.3.0/crtend.o: unknown program property type 0xc0010001 in
.note.gnu.property section
little
Checking 64-bitness... yes
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Type with 8 bytes... long
Alignment required... no
Checking host CPU architecture... x86_64
Checking hosttype... linux-gnu
Checking for pkg-config... yes
Looking for sdl-config... /usr/bin//sdl2-config
Checking for SDL... yes
Checking for SDL_Net... no
Checking if host is POSIX compliant... yes
Checking if posix_spawn is supported... yes
Checking whether to have a verbose build... no
Checking whether building plugins was requested... no
Checking for Ogg... yes
Checking for TTS libraries... no
Checking for Vorbis... yes
Checking for Tremor... no (Vorbis/Tremor support is mutually exclusive)
Checking for OPL2LPT... no
Checking for FLAC >= 1.0.1... yes
Checking for MAD... yes
Checking for ALSA >= 0.9... yes
Checking for libjpeg >= v6b... yes
Checking for PNG >= 1.2.8... yes
Checking for libtheoradec >= 1.0... yes
Checking for libfaad... no
Checking for SEQ MIDI... yes
Checking for sndio... no
Checking for TiMidity... yes
Checking for zlib... yes
Checking for libmpeg2 >= 0.4.0... no
Checking for liba52... No accelerated IMDCT transform found
yes
Looking for curl-config... /usr/bin//curl-config
Checking for libcurl... yes
Cloud integration... servers
Checking for FluidSynth... no
Checking for readline... skipping (text console disabled)
Checking for libunity... no
Checking for gtk... yes
Checking for FreeType2... yes
Checking for OpenGL... yes (runtime detection)
Checking whether iconv.h is present... yes
Checking whether iconv needs linking against libiconv... no
Checking signature of iconv... iconv_t, char **, size_t *, char **, size_t
*
Checking for iconv... yes
Checking for Linux CD-ROM... yes
Checking for FriBidi... yes
Test C++11 compatibility during compilation... no
Checking for Discord RPC... no
Building translation support... yes (with runtime language detection)
Building taskbar integration support... no
Building system dialogs support... gtk
Building text-to-speech support... no
Building Bink video support... yes
Building updates support... no
Enabling Address Sanitizer... no
Enabling Thread Sanitizer... no
Backend... sdl (2.0.12), 16bit color, high resolution, savegame timestamp,
HQ scalers, MT-32 emulator, Lua, Nuked OPL emulator, cloud
Engines (builtin):
SCUMM [all games]
Access
ADL
AGI
AGOS [all games]
Beavis and Butthead in Virtual Stupidity
Blade Runner
CGE
CGE2
Cinematique evo 1
Magic Composer
Cinematique evo 2
Cryo Omni3D games [all games]
Dragon History
Blazing Dragons
Drascula: The Vampire Strikes Back
Dreamweb
Full Pipe
Glk Interactive Fiction games
UFOs
Gobli*ns
The Griffon Legend
Groovie [7th Guest]
Hyperspace Delivery Boy!
Hopkins FBI
Hugo Trilogy
Illusions Engine
Kyra [all games]
Labyrinth of Time
Lure of the Temptress
MADE
MADS
Mohawk [Living Books] [Myst] [Myst ME] [Riven: The Sequel to Myst]
Mortevielle
Neverhood
Parallaction
The Journeyman Project: Pegasus Prime
Plumbers Don't Wear Ties
The Prince and The Coward
Flight of the Amazon Queen
SAGA [ITE] [IHNM]
SCI [all games]
The Lost Files of Sherlock Holmes
Beneath a Steel Sky
Mission Supernova
Broken Sword
Broken Sword II
Broken Sword 2.5
Teen Agent
Tinsel
Starship Titanic
3 Skulls of the Toltecs
Tony Tough and the Night of Roasted Moths
Toonstruck
Touche: The Adventures of the Fifth Musketeer
TsAGE
Bud Tucker in Double Trouble
Ultima
Voyeur
Wintermute [all games]
World of Xeen
Z-Vision
Engines Skipped:
Lord Avalot d'Argent
Chewy: Esc from F5
Lost Eden
Macromedia Director
Dungeon Master
Groovie [Groovie 2 games]
Kingdom: The Far Reaches
The Last Express
Lilliput
MacVenture
Mohawk [Where in Time is Carmen Sandiego?]
Mutation of JB
Red Comrades
Pink Panther
SAGA [SAGA 2 games]
Sludge
Star Trek 25th Anniversary/Judgment Rites
TestBed: the Testing framework
WAGE
Creating config.h
Creating config.mk
Creating engines/engines.mk
Creating engines/plugins_table.h
make
fatal: not a git repository (or any of the parent directories): .git
C++ backends/platform/sdl/sdl.o
In file included from ./common/stream.h:26,
from ./common/savefile.h:28,
from ./gui/EventRecorder.h:29,
from backends/platform/sdl/sdl.cpp:27:
./common/endian.h:49:3: error: #error No endianness defined
49 | # error No endianness defined
| ^~~~~
In file included from ./common/util.h:27,
from ./common/algorithm.h:28,
from ./common/array.h:27,
from ./common/system.h:28,
from ./backends/base-backend.h:26,
from ./backends/modular-backend.h:26,
from ./backends/platform/sdl/sdl.h:28,
from backends/platform/sdl/sdl.cpp:25:
./common/str.h:51:15: error: ‘uint32’ does not name a type; did you mean
‘Uint32’?
51 | static const uint32 npos = 0xFFFFFFFF;
| ^~~~~~
| Uint32
./common/str.h:77:15: error: ‘uint32’ does not name a type; did you mean
‘Uint32’?
77 | static const uint32 _builtinCapacity = 32 - sizeof(uint32) -
sizeof(char *);
| ^~~~~~
| Uint32
...
--
--
Ticket URL: <https://bugs.scummvm.org/ticket/12421#comment:2>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list