Page 1 of 1

Make error

Posted: Wed Jul 04, 2018 5:37 am
by threlo
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

Re: Make error

Posted: Thu Jul 05, 2018 10:13 am
by WinterMute
Update libogc - 1.8.20 has changes for latest devkitPPC.

Still some more time related things to work on but it compiles.