Xref: utzoo comp.unix.sysv386:4029 comp.windows.x:31489 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!apple!netcom!aed From: aed@netcom.UUCP (Andrew Davidson) Newsgroups: comp.unix.sysv386,comp.windows.x Subject: Re: problem with libraries in SCO UNIX Message-ID: <20886@netcom.UUCP> Date: 14 Jan 91 22:34:14 GMT Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest} Lines: 49 Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest} Keywords: ld ranlib ar Hi Is there a problem with ranlib on SCO UNIX? here is what happends when I tried to use it rm -f libwi.a ar cq libwi.a wimain.o ranlib libwi.a ranlib: libwi.a: not an archive I noticed that the makefile defines the following internal rule .c.a: does not use ranlib at all? I also have the following error g++ -o proto proto.cc -g -DSYSV -DXSIGHT -DMOTIF \ -I. -I/y/cats/r1_00p2.work/lib \ /y/cats/r1_00p2.work/lib/ui/libui.a \ /y/cats/r1_00p2.work/lib/wi/libwi.a \ /y/cats/r1_00p2.work/lib/mi/libmi.a \ /y/cats/r1_00p2.work/lib/tcl/tcl.a \ -lXm -lXt -lX11 -lsocket -lmalloc -lm -lg++ ld proto.o fatal: Can't open file for input ttest: /y/cats/r1_00p2.work/lib/ui/libui.a: cannot execute but the file exists and is owned by me. 56% ll /y/cats/r1_00p2.work/lib/ui/libui.a -rw------- 1 everett group 1101674 Jan 14 13:54 /y/cats/r1_00p2.work/lib/u i/libui.a Why does ld need to open the library for input Any Ideas? Thanks Andy -- ----------------------------------------------------------------- "bede-bede-bede Thats all Folks" Porky Pig Andy Davidson Woodside CA. aed@netcom -----------------------------------------------------------------