CavEX icon indicating copy to clipboard operation
CavEX copied to clipboard

Compiling fails

Open Kamion008 opened this issue 11 months ago • 2 comments

When I tried to compile the game for the wii this error pops up: source /etc/profile.d/devkit-env.sh make thread.c /home/kamion008/Downloads/cavEX/CavEX/source/platform/thread.c: In function 'thread_msleep': /home/kamion008/Downloads/cavEX/CavEX/source/platform/thread.c:129:9: error: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] 129 | usleep(ms * 1000); | ^~~~~~ make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:21: thread.o] Error 1 make: *** [Makefile:112: build] Error 2

Kamion008 avatar Dec 29 '24 23:12 Kamion008

can you try and add the following directly after #ifdef PLATFORM_WII in source/platform/thread.c?

#define _BSD_SOURCE

xtreme8000 avatar Dec 30 '24 10:12 xtreme8000

I get the same error

Kamion008 avatar Dec 30 '24 12:12 Kamion008