> 
> I am trying to compile a sync driver maintenance program on fbsd-stable.  I
> keep getting compiler errors:
> 
> ft1config.o: In function `run_interactive':
> ft1config.o(.text+0x565): undefined reference to `initscr'
> ft1config.o(.text+0x56a): undefined reference to `cbreak'
> ft1config.o(.text+0x56f): undefined reference to `noecho'
> ft1config.o(.text+0x577): undefined reference to `stdscr'
> ft1config.o(.text+0x57c): undefined reference to `scrollok'
> ft1config.o(.text+0x583): undefined reference to `halfdelay'
> ft1config.o(.text+0x5c2): undefined reference to `stdscr'
> ft1config.o(.text+0x5c7): undefined reference to `wrefresh'
> ft1config.o(.text+0x5d1): undefined reference to `printw'
> ft1config.o(.text+0x658): undefined reference to `printw'
> ft1config.o(.text+0x672): undefined reference to `printw'
> ft1config.o(.text+0x6e8): undefined reference to `stdscr'
> ft1config.o(.text+0x6ed): undefined reference to `wrefresh'
> ft1config.o(.text+0x6f3): undefined reference to `stdscr'
> ft1config.o(.text+0x6f8): undefined reference to `wgetch'
> 
> even though the source file has #include <ncurses.h> at the head of the
> list.  I've tried -I/usr/include and "ncurses.h" with a link to the working
> directory and I'm out of ideas.
> 
> What am I doing wrong, please?
> 
> Thanks.
> 
> Jim
> 
> 

try adding -lncurses to your link line. :)

Kevin


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to