Make error

Post Reply
threlo
Posts: 1
Joined: Tue Jul 03, 2018 1:05 am

Make error

Post by threlo » Wed Jul 04, 2018 5:37 am

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

WinterMute
Site Admin
Posts: 1367
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Make error

Post by WinterMute » Thu Jul 05, 2018 10:13 am

Update libogc - 1.8.20 has changes for latest devkitPPC.

Still some more time related things to work on but it compiles.
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests