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

It does not Work #2

Open
ahmutkadim opened this issue May 8, 2024 · 0 comments
Open

It does not Work #2

ahmutkadim opened this issue May 8, 2024 · 0 comments

Comments

@ahmutkadim
Copy link

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); 
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

1 participant