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
Post a Comment