You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know you might not even bother to answer this issue but I just wanted to say that it does not work. I use macOS Ventura and it fails to compile with 8 errors their messages are:
gcc pacman.c -o pacman -DDATAROOTDIR=\"/usr/local/share\" -lncurses
pacman.c:59:19: error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
srand( (unsigned)time( NULL ) );
^
pacman.c:59:19: note: did you mean 'ftime'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/timeb.h:91:9: note: 'ftime' declared here
int ftime(struct timeb *);
^
pacman.c:109:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
usleep(1000000);
^
pacman.c:122:5: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
usleep(1000000);
^
pacman.c:317:3: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
usleep(100000);
^
pacman.c:324:2: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
usleep(1000000);
^
pacman.c:417:2: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
usleep(1000000);
^
pacman.c:545:12: error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
itime = time(0);
^
pacman.c:550:51: error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if(Invincible == 1) tleft = (11 - LevelNumber - time(0) + itime);
The text was updated successfully, but these errors were encountered:
I know you might not even bother to answer this issue but I just wanted to say that it does not work. I use macOS Ventura and it fails to compile with 8 errors their messages are:
The text was updated successfully, but these errors were encountered: