Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Can't compile C in theos

test code: main.mm

int main(int argc, char **argv, char **envp) {
    if (strcmp(argv[0], "test")){
        printf("successful\n");
        return 0;
    }
    return 0;
}

When I try compile and it show error

Undefined symbols for architecture armv7:
  "_strcmp", referenced from:
      _main in main.mm.f1afd1db.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Comments