> > Hi, > > I'm running into another problem again with gcc while try to > build vile. > > The gcc can not load -ltermcap nor -lncurses. Here are the > two small programs that caused the problem: > > prog1.c > char initscr(); int main() { initscr(); return 0; } > $ gcc prog1.c -lncurses > ld: cannot open -lncurses: no such file or directory
Try gcc -o prog1 prog1.c -lreadline This at least links. > > prog2.c > char tgoto(); int main() { tgoto(); return 0; } > $ gcc prog1.c -ltermcap > ld: cannot open -ltermcap: no such file or directory > again, gcc -o prog2 prog2.c -lreadline works. > both libs are in /lib: > libncurses.so.3.0 > libtermcap.so.2 -> libtermcap.so.2.0.8 > libtermcap.so.2.0.8 > I've recently learnt that, for -termcap to be found, one needs .so links: libtermcap.so -> libtermcap.so.2.0.8 and that one is missing. I'm not sure if this is a bug in the termcap package: the debian system tries to supply all packagres linked with readline, and as such the missing .so files may be intentional (I just don't know). -- joost witteveen [EMAIL PROTECTED] [EMAIL PROTECTED] -- Use Debian/GNU Linux! -- This message was delayed because the list mail delivery agent was down.