Path: utzoo!utgpu!water!watmath!clyde!burl!codas!mtune!mtgzz!drutx!clive From: clive@drutx.ATT.COM (Clive Steward) Newsgroups: comp.sources.d Subject: Re: HELP with vn Message-ID: <6800@drutx.ATT.COM> Date: 21 Feb 88 02:22:29 GMT References: <163@magic4.UUCP> Organization: resident visitor Lines: 42 From article <163@magic4.UUCP>, by eric@magic4.UUCP (Eric Kozowski): > Could someone please help me with this problem. Here is the output > from a make on vn: > ... > undefined first referenced > symbol in file > regcmp reader.o > regex reader.o > ld fatal: Symbol referencing errors. No output written to vn > *** Error code 13 > > Stop. > > I'm running Sys V 3.1 on an AT&T 3B2/400. Please help. Here is how to fix such things. Take your Unix Manuals. Look up regcmp in the permuted index. You'll find man pages listed in section 3, which is in the Programmer Reference Manual. There you will see that 'this routine is kept in /lib/libPW.a'. If you are familiar with ld, or read the man pages (Section 1, User Reference Manual), you will know that such a library is automatically included by putting the shorter -lPW on the cc command line. So, let's edit the Makefile. Comment out the LIBS definition, and replace it as follows: #LIBS = -ltermcap LIBS = -lcurses -lPW We'll do one thing more; curses is a later replacement for termcap, and usually a bit better, so we substitute that library as well. If you turn out to have screen problems for some reason, you can alternatively use: LIBS = -lcurses -lPW Once you've edited the Makefile, re-make vn. This should work. Hope you have good fortune with it.