G
Guest
Guest
Archived from groups: rec.games.roguelike.development (More info?)
I tried to compile the following code:
#include <ncurses.h>
int main()
{
initscr();
printw("Hello World!!!");
refresh();
getch();
endwin();
return (0);
}
and got the following error messages:
unbinder@Julian:~$ g++ -o nimrl ~/stories/code/nimrl.cpp
/home/unbinder/stories/code/nimrl.cpp:12:2: warning: no newline at end
of file
/tmp/ccuBixdB.o(.text+0x11): In function `main':
: undefined reference to `initscr'
/tmp/ccuBixdB.o(.text+0x1d): In function `main':
: undefined reference to `printw'
/tmp/ccuBixdB.o(.text+0x22): In function `main':
: undefined reference to `refresh'
/tmp/ccuBixdB.o(.text+0x27): In function `main':
: undefined reference to `stdscr'
/tmp/ccuBixdB.o(.text+0x2f): In function `main':
: undefined reference to `wgetch'
/tmp/ccuBixdB.o(.text+0x34): In function `main':
: undefined reference to `endwin'
collect2: ld returned 1 exit status
Is there a newsgroup dedicated to ncurses? I couldn't find one.
I tried to compile the following code:
#include <ncurses.h>
int main()
{
initscr();
printw("Hello World!!!");
refresh();
getch();
endwin();
return (0);
}
and got the following error messages:
unbinder@Julian:~$ g++ -o nimrl ~/stories/code/nimrl.cpp
/home/unbinder/stories/code/nimrl.cpp:12:2: warning: no newline at end
of file
/tmp/ccuBixdB.o(.text+0x11): In function `main':
: undefined reference to `initscr'
/tmp/ccuBixdB.o(.text+0x1d): In function `main':
: undefined reference to `printw'
/tmp/ccuBixdB.o(.text+0x22): In function `main':
: undefined reference to `refresh'
/tmp/ccuBixdB.o(.text+0x27): In function `main':
: undefined reference to `stdscr'
/tmp/ccuBixdB.o(.text+0x2f): In function `main':
: undefined reference to `wgetch'
/tmp/ccuBixdB.o(.text+0x34): In function `main':
: undefined reference to `endwin'
collect2: ld returned 1 exit status
Is there a newsgroup dedicated to ncurses? I couldn't find one.