Skip to content

It does not Work #2

@ahmutkadim

Description

@ahmutkadim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions