1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | $ sh build.sh In file included from src/handmade.h:22:0, from src/handmade.cpp:9: src/handmade_platform.h:57:9: error: ‘size_t’ does not name a type typedef size_t memory_index; ^ In file included from src/handmade.cpp:9:0: src/handmade.h:68:5: error: ‘memory_index’ does not name a type memory_index Size; ^ src/handmade.h:70:5: error: ‘memory_index’ does not name a type memory_index Used; ^ src/handmade.h:74:38: error: ‘memory_index’ has not been declared InitializeArena(memory_arena *Arena, memory_index Size, uint8 *Base) ^ src/handmade.h: In function ‘void InitializeArena(memory_arena*, int, uint8*)’: src/handmade.h:76:12: error: ‘struct memory_arena’ has no member named ‘Size’ Arena->Size = Size; ^ src/handmade.h:78:12: error: ‘struct memory_arena’ has no member named ‘Used’ Arena->Used = 0; ^ src/handmade.h: At global scope: src/handmade.h:84:32: error: ‘memory_index’ has not been declared PushSize_(memory_arena *Arena, memory_index Size) ^ src/handmade.h: In function ‘void* PushSize_(memory_arena*, int)’: src/handmade.h:86:20: error: ‘struct memory_arena’ has no member named ‘Used’ Assert((Arena->Used + Size) <= Arena->Size); ^ src/handmade.h:32:33: note: in definition of macro ‘Assert’ #define Assert(Expression) if(!(Expression)) {*(int *)0 = 0;} ^ src/handmade.h:86:43: error: ‘struct memory_arena’ has no member named ‘Size’ Assert((Arena->Used + Size) <= Arena->Size); ^ src/handmade.h:32:33: note: in definition of macro ‘Assert’ #define Assert(Expression) if(!(Expression)) {*(int *)0 = 0;} ^ src/handmade.h:87:41: error: ‘struct memory_arena’ has no member named ‘Used’ void *Result = Arena->Base + Arena->Used; ^ src/handmade.h:88:12: error: ‘struct memory_arena’ has no member named ‘Used’ Arena->Used += Size; ^ src/handmade.cpp: In function ‘void GameUpdateAndRender(thread_context*, game_memory*, game_input*, game_offscreen_buffer*)’: src/handmade.cpp:267:97: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] DEBUGLoadBMP(Thread, Memory->DEBUGPlatformReadEntireFile, "test/test_background.bmp"); ^ src/handmade.cpp:269:102: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] DEBUGLoadBMP(Thread, Memory->DEBUGPlatformReadEntireFile, "test/test_hero_front_head.bmp"); ^ src/handmade.cpp:271:102: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] DEBUGLoadBMP(Thread, Memory->DEBUGPlatformReadEntireFile, "test/test_hero_front_cape.bmp"); ^ src/handmade.cpp:273:103: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] DEBUGLoadBMP(Thread, Memory->DEBUGPlatformReadEntireFile, "test/test_hero_front_torso.bmp"); ^ |
I'm probably missing something really obvious, but I can't see what it is. Any chance you could give me a nudge in the right direction, please, folks?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | $ pacman -Qs gcc\|xcb\|alsa local/alsa-lib 1.0.29-1 An alternative implementation of Linux sound support local/alsa-oss 1.0.28-1 OSS compatibility library local/alsa-plugins 1.0.29-2 Extra alsa plugins local/alsa-utils 1.0.29-1 An alternative implementation of Linux sound support local/cairo 1.14.2-1 Cairo vector graphics library local/gcc 4.9.2-4 (base-devel) The GNU Compiler Collection - C and C++ frontends local/gcc-libs 4.9.2-4 (base) Runtime libraries shipped by GCC local/lib32-alsa-lib 1.0.29-1 An alternative implementation of Linux sound support (32 bit) local/lib32-alsa-plugins 1.0.29-2 Extra alsa plugins (32-bit) local/lib32-gcc-libs 4.9.2-4 Runtime libraries shipped by GCC (32-bit) local/lib32-libxcb 1.11-1 X11 client-side library (32-bit) local/lib32-xcb-util 0.4.0-1 Utility libraries for XC Binding (32-bit) local/libxcb 1.11-1 X11 client-side library local/xcb-proto 1.11-1 XML-XCB protocol descriptions local/xcb-util 0.4.0-1 Utility libraries for XC Binding local/xcb-util-cursor 0.1.1-1 XCB cursor library local/xcb-util-image 0.4.0-1 Utility libraries for XC Binding - Port of Xlib's XImage and XShmImage functions local/xcb-util-keysyms 0.4.0-1 Utility libraries for XC Binding - Standard X key constants and conversion to/from keycodes local/xcb-util-renderutil 0.3.9-1 Utility libraries for XC Binding - Convenience functions for the Render extension local/xcb-util-wm 0.4.1-1 Utility libraries for XC Binding - client and window-manager helpers for ICCCM local/zita-alsa-pcmi 0.2.0-2 The successor of clalsadrv, provides easy access to ALSA PCM devices. |