OpenTomb icon indicating copy to clipboard operation
OpenTomb copied to clipboard

compile error: core/system.h needs to #include <stddef.h>

Open SKDzd opened this issue 1 year ago • 2 comments

It has something to do with size_t managed to compile after including stddef.h (NOT as the compiler suggested though)

Then when running, the glx error poped up (workaround: disable antialias) My distro is a debian 12 flavor (MX 23.1)

SKDzd avatar May 18 '24 21:05 SKDzd

Can confirm, same problem and solved by adding stddef.h to core/system.h

System: Arch Linux x64

h0m3 avatar Oct 12 '24 22:10 h0m3

I have problems compiling on manjaro Linux. Maybe related?

86%] Building CXX object CMakeFiles/OpenTomb.dir/src/state_control/state_control_Lara.cpp.o [ 87%] Building CXX object CMakeFiles/OpenTomb.dir/src/state_control/state_control_LaraWeapons.cpp.o En el fichero incluido desde /home/darkstar/Documentos/src/OpenTomb-master/src/state_control/state_control_LaraWeapons.cpp:3: /home/darkstar/Documentos/src/OpenTomb-master/src/state_control/../core/system.h:57:22: error: ‘size_t’ no se declaró en este ámbito 57 | void *Sys_GetTempMem(size_t size); | ^~~~~~ /home/darkstar/Documentos/src/OpenTomb-master/src/state_control/../core/system.h:12:1: nota: ‘size_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ 11 | #include <SDL2/SDL_opengl.h> +++ |+#include 12 | /home/darkstar/Documentos/src/OpenTomb-master/src/state_control/../core/system.h:58:6: error: se declaró la variable o campo ‘Sys_ReturnTempMem’ como void 58 | void Sys_ReturnTempMem(size_t size); | ^~~~~~~~~~~~~~~~~ /home/darkstar/Documentos/src/OpenTomb-master/src/state_control/../core/system.h:58:24: error: ‘size_t’ no se declaró en este ámbito 58 | void Sys_ReturnTempMem(size_t size); | ^~~~~~ /home/darkstar/Documentos/src/OpenTomb-master/src/state_control/../core/system.h:58:24: nota: ‘size_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ /home/darkstar/Documentos/src/OpenTomb-master/src/state_control/../core/system.h:64:29: error: ‘size_t’ no se ha declarado 64 | void Sys_Strtime(char *buf, size_t buf_size); | ^~~~~~ make[2]: *** [CMakeFiles/OpenTomb.dir/build.make:835: CMakeFiles/OpenTomb.dir/src/state_control/state_control_LaraWeapons.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:157: CMakeFiles/OpenTomb.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

darkstar252 avatar Feb 14 '25 20:02 darkstar252