Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling fails #63

Open
Kamion008 opened this issue Dec 29, 2024 · 2 comments
Open

Compiling fails #63

Kamion008 opened this issue Dec 29, 2024 · 2 comments

Comments

@Kamion008
Copy link

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

@xtreme8000
Copy link
Owner

xtreme8000 commented Dec 30, 2024

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

#define _BSD_SOURCE

@Kamion008
Copy link
Author

I get the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants