hi there
i am new to this forum
i am working on a course project,it is simplified Pacman .
i used to get "char"s from input w/o pushing enter button , in windows compilers there is a library named conio.h but it is not standard
so i installed a similar(maybe!) library curses.h
using this command:
Code:
sudo apt-get install libncurses5
and i included to my c++ code:
Code:
...
#include<curses.h>
...
int loop()
{
char a;
a=getch();
cout<<a<<endl;
...
and I get two errors:
undefined reference to 'stdscr'
undefined reference to 'stdscrwgetch'
what should I do?
Bookmarks