mmutale
Hello I need help. We have Linux Red Hat 4 and I am trying to compile the following 'C' Program.
#define CUR_PD 338
#include<stdio.h>
#include<stdlib.h>
#include<curses.h>
struct s_menus{
int ops;
int y,x,w,o;
int ptr;
char title[20];
char options[10][40];
char commands[10][40];
};
typedef struct s_menus MENU;
int opt;
MENU m;
main()
{
char a[20];
int i,y,x,o,w;
opt=0;
InitialiseAll();
menus_ini(&m);
InitialiseFile(&w);
x=(80-w)/2;
y=5;
o=opt+2;
menus_title(&m,"UNZA");
i=menus(&m,y,x,o,w);
clear();
refresh();
endwin();
}
When I use the following:
cc unzamenu2.c -lcurses -o unzamenu or
gcc unzamenu2.c -o unzamenu
it is coming up with:
'undefined reference to 'stdscr'
Which I feel should be in the include libraries.
Can you please help ?
Thanking you in advance.
Felix Mwango Mutale