I'm running Xcode 12.4 on an M1 Mac Mini with command line tools installed. My project was created as a macOS "Command Line Tool" application. When I try to build:
#include <term.h>
int main(int argc, const char * argv[]) {
set_curterm(nullptr);
return 0;
}
I get the following linker error:
Undefined symbols for architecture arm64:
"_set_curterm", referenced from:
_main in main.o
Does anyone know what library I need to link to in order to resolve _set_curterm?
#include <term.h>
int main(int argc, const char * argv[]) {
set_curterm(nullptr);
return 0;
}
I get the following linker error:
Undefined symbols for architecture arm64:
"_set_curterm", referenced from:
_main in main.o
Does anyone know what library I need to link to in order to resolve _set_curterm?