I want to continually check for keyboard presses to control a character. After some research i saw people recommended ncurses for mac so I tried this but it did not go well. I made a test to see if it worked but I get the error message "Undefined symbols for architecture x86_64:". Is there any way I can fix this. (Im just starting with coding so maybe its something really small and dumb).
#include <iostream>
#include <ncurses.h>
using namespace std;
int main()
{
keypad(stdscr, TRUE);
halfdelay(1);
int c = getch();
switch (c)
{
case KEY_UP:
cout << endl << "You pressed UP" << endl;
}
return 0;
}