intijk
May 10th, 2008, 12:16 AM
code:
#include <ncurses.h>
int main()
{
initsrc();
endwin();
return 0;
}
then:
gcc test.c -lncurses
but it shows :
/tmp/ccOtOxfi.o: In function `main':
hellocurses.c:(.text+0x12): undefined reference to `initsrc'
I have install the libncurses5.dev
and I can make sure I have the libncurses.a now.
But still the problem exist.
Anyone could help me ?
Thank you!
#include <ncurses.h>
int main()
{
initsrc();
endwin();
return 0;
}
then:
gcc test.c -lncurses
but it shows :
/tmp/ccOtOxfi.o: In function `main':
hellocurses.c:(.text+0x12): undefined reference to `initsrc'
I have install the libncurses5.dev
and I can make sure I have the libncurses.a now.
But still the problem exist.
Anyone could help me ?
Thank you!