Path: utzoo!utgpu!water!watmath!clyde!att-cb!ihnp4!laidbak!obdient!blair From: blair@obdient.UUCP (Doug Blair) Newsgroups: comp.sources.d Subject: Re: HELP with vn Summary: add PW library to Makefile Keywords: help Message-ID: <377@obdient.UUCP> Date: 23 Feb 88 13:39:40 GMT References: <163@magic4.UUCP> Organization: Obedient Software Corp, Wheaton, IL Lines: 37 In article <163@magic4.UUCP>, eric@magic4.UUCP (Eric Kozowski) writes: > Could someone please help me with this problem. Here is the output > from a make on vn: > > cc -O -DSYSV -Dregfree=free -Dindex=strchr -Drindex=strrchr -c std.c > cc -o vn hash.o envir_set.o pagefile.o reader.o storage.o sig_set.o term_set.o tty_set.o userlist.o vn.o vnglob.o digest.o strings.o session.o printex.o getch.o help.o newdisp.o stat.o svart.o tmpnam.o std.o -ltermcap > 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. > Eric is running sysV. I ran into the same problem last night! It took me a while to dig out the fact that regcmp and regex are functions you can only access through the libPW.a file, which is usually in /lib. About halfway down the Makefile there are three lines used when compiling under sysV. The line that defines the LIBS variable should be: LIBS = -ltermcap -lPW If you're using V/AT you'll need to modify the PW filename to include the small or large model size as appropriate. I don't have V/AT so I'm not sure exactly how that's done. It is discussed briefly under regcmp(3x). Doug Blair -- =============================================================================== | Doug Blair ... ihnp4!laidbak!obdient!blair | | "I'm not a Consultant, but I play one on TV." | | Obedient Software Corporation, 1007 Naperville Road, Wheaton, IL 60187 | ===============================================================================