When I add getch() to my two functions I got errors stating:
"Undefined symbol: _stdscr" and "Undefined symbol: _wgetch"
I am using a MacBook with the library #include <curses.h> in Xcode
Thanks in advance.
When I add getch() to my two functions I got errors stating:
"Undefined symbol: _stdscr" and "Undefined symbol: _wgetch"
I am using a MacBook with the library #include <curses.h> in Xcode
Thanks in advance.
Just add -lcurses option (link directive) while compiling.
For example : clang++ main.cpp -o main -lcurses
If you are using make then add LDLIBS = -lcurses to your makefile.
I just noticed that you are using XCode. So here you go : Linking Libraries in Xcode. Just replace -lfftw3 in the answer by -lcurses.