Hello Evey one,
I'm a fedora beginner and I want to make a program that read extended keys (UP DOWN LEFT RIGHT BUTTONS) in C :
I installed gcc and I can now compile .c applications.
First I had a problem with getch and I read some forums and installed some stuff I can now include curses.h
If I ran the following app as follow :
gcc testKeys.c -o test -lncurses
I get an immediate output 81 and -1 without pressing any keys
and if i ran it without the -lncurses option I get the following errors
In function `main':
.text+0xa): undefined reference to `stdscr'
.text+0x12): undefined reference to `wgetch'
.text+0x31): undefined reference to `stdscr'
.text+0x39): undefined reference to `wgetch'
collect2: ld returned 1 exit status
a = getch();
gScan = getch();
case 72: printf("up \n",gScan);
case 80: printf("down \n",gScan);
case 75: printf("left \n",gScan);
case 77: printf("right \n",gScan);
Can any one help me ????