Whenever I run make for a gamecube program, I get this error.
In file included from /home/threlo/examples/gamecube/graphics/fb/consoletest/source/main.cpp:5:
/opt/devkitpro/libogc/include/ogcsys.h:35:5: error: conflicting declaration of C function 'int nanosleep(timespec*)'
int nanosleep(struct timespec *tb);
^~~~~~~~~
In file included from /opt/devkitpro/libogc/include/ogc/system.h:43,
from /opt/devkitpro/libogc/include/gccore.h:62,
from /home/threlo/examples/gamecube/graphics/fb/consoletest/source/main.cpp:1:
/opt/devkitpro/devkitPPC/powerpc-eabi/include/time.h:210:5: note: previous declaration 'int nanosleep(const timespec*, timespec*)'
int nanosleep (const struct timespec *rqtp, struct timespec *rmtp);
^~~~~~~~~
/opt/devkitpro/devkitPPC/base_rules:12: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
Makefile:99: recipe for target 'build' failed
make: *** [build] Error 2
Make error
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Make error
Update libogc - 1.8.20 has changes for latest devkitPPC.
Still some more time related things to work on but it compiles.
Still some more time related things to work on but it compiles.
Who is online
Users browsing this forum: No registered users and 3 guests