I am new to programming. I want to use the curses library (mostly for getch()), but when I compile the following program:
#include <curses.h>
main()
{
getch();
}
I get errors:
Undefined symbols:
"_stdscr", referenced from:
_stdscr$non_lazy_ptr in ccHJ7Nf8.o
"_wgetch", referenced from:
_main in ccHJ7Nf8.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I read that you must link the library or something like that. Any ideas?
Thanks.
#include <curses.h>
main()
{
getch();
}
I get errors:
Undefined symbols:
"_stdscr", referenced from:
_stdscr$non_lazy_ptr in ccHJ7Nf8.o
"_wgetch", referenced from:
_main in ccHJ7Nf8.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I read that you must link the library or something like that. Any ideas?
Thanks.