endeav0r/ravm — Issue #3: compile error on ubuntu 11.10
Author: prashants
Created: 2012-01-07 17:54:11+00:00
State: open

I am getting these errors when compiling on Ubuntu 11.10

gcc -Wall -O2 -lncurses -o vm \
src/debug.o src/image.o src/vm.o src/god_mode.o
src/god_mode.o: In function `god_mode_finish':
god_mode.c:(.text+0x14): undefined reference to `endwin'
src/god_mode.o: In function `god_mode_init':
god_mode.c:(.text+0x5c): undefined reference to `initscr'
god_mode.c:(.text+0x61): undefined reference to `nonl'
god_mode.c:(.text+0x66): undefined reference to `cbreak'
god_mode.c:(.text+0x6b): undefined reference to `noecho'
god_mode.c:(.text+0x70): undefined reference to `stdscr'
god_mode.c:(.text+0x80): undefined reference to `keypad'
god_mode.c:(.text+0x85): undefined reference to `start_color'
god_mode.c:(.text+0xa1): undefined reference to `init_pair'
god_mode.c:(.text+0xbd): undefined reference to `init_pair'
god_mode.c:(.text+0xd9): undefined reference to `init_pair'
god_mode.c:(.text+0xf5): undefined reference to `init_pair'
god_mode.c:(.text+0x111): undefined reference to `init_pair'
src/god_mode.o:god_mode.c:(.text+0x12d): more undefined references to `init_pair' follow
src/god_mode.o: In function `god_mode_init':
god_mode.c:(.text+0x14e): undefined reference to `stdscr'
god_mode.c:(.text+0x156): undefined reference to `wrefresh'
src/god_mode.o: In function `god_mode_draw':
god_mode.c:(.text+0x182): undefined reference to `LINES'
god_mode.c:(.text+0x1d9): undefined reference to `stdscr'
god_mode.c:(.text+0x1e1): undefined reference to `wmove'
god_mode.c:(.text+0x1ef): undefined reference to `stdscr'
god_mode.c:(.text+0x203): undefined reference to `waddnstr'
god_mode.c:(.text+0x209): undefined reference to `COLS'
god_mode.c:(.text+0x2de): undefined reference to `stdscr'
god_mode.c:(.text+0x2e6): undefined reference to `wmove'
god_mode.c:(.text+0x2f0): undefined reference to `stdscr'
god_mode.c:(.text+0x2ff): undefined reference to `waddch'
god_mode.c:(.text+0x352): undefined reference to `COLS'
god_mode.c:(.text+0x37f): undefined reference to `LINES'
god_mode.c:(.text+0x426): undefined reference to `LINES'
god_mode.c:(.text+0x43a): undefined reference to `stdscr'
god_mode.c:(.text+0x442): undefined reference to `wmove'
god_mode.c:(.text+0x45c): undefined reference to `stdscr'
god_mode.c:(.text+0x464): undefined reference to `waddnstr'
god_mode.c:(.text+0x4b4): undefined reference to `LINES'
god_mode.c:(.text+0x4c8): undefined reference to `stdscr'
god_mode.c:(.text+0x4d0): undefined reference to `wmove'
god_mode.c:(.text+0x4ea): undefined reference to `stdscr'
god_mode.c:(.text+0x4f2): undefined reference to `waddnstr'
god_mode.c:(.text+0x4f7): undefined reference to `stdscr'
god_mode.c:(.text+0x4ff): undefined reference to `wrefresh'
src/god_mode.o: In function `god_mode':
god_mode.c:(.text+0x561): undefined reference to `stdscr'
god_mode.c:(.text+0x569): undefined reference to `wgetch'
god_mode.c:(.text+0x56f): undefined reference to `COLS'
collect2: ld returned 1 exit status
make: *** [vm] Error 1