Graphical aplication under linux

Hi all i am trying to develop a c++ application under linux with ncurses in the Eclipse platform but i'm not being well succeeded. The result is the non recognition of the ncurses functions(commented in code below, like initscr and printw, etc) here is the peace of code.

----->
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "Matriz.h"
#include <ncurses.h>


Matriz::Matriz(int nc, int nl) {
	nlinhas=nl;
	ncolunas=nc;
}

void Matriz::DesenharMatriz(void){
	initscr();			/*  		  */
	printw("Hello World !!!");	/*    This part   */
	refresh();			/* of code is not */
	getch();			/*   recognized   */
	endwin();			/*                */

}


Please help, thanks in advance
did you install ncurses? did you link them to your program?
Topic archived. No new replies allowed.