I am trying to run this program in CodeBlocks with Ubuntu operating system. The compiler is GNU GCC Compiler
#include <iostream>
#include <ncurses.h>
using namespace std;
int main()
{
cout << "ingrese letra" << endl;
char letra;
letra = getch();
cout << "Su letra fue: " << letra;
}
However the code does not compile and throws me as an error:
reference to "stdscr" without defining
reference to "wgetch" undefined
I also tried to add to the compiler "ncurses" how I could read here but despite doing so I still do not can display the character on the screen (Although this time compiles):
What other documentation could I read to see if I can compile projects that involve character manipulation?
I have read this article: "How to include or link ncurses / curses library in Codeblocks 13.12 in Ubuntu 16.04" but I can not find the boost directory (I do not copy the link because I do not have a reputation of more than 10)