From: Rick Sladkey (jrs@world.std.com)
Date: 05/29/92


From: jrs@world.std.com (Rick Sladkey)
Subject: Re: libg.a and ld
Date: 29 May 1992 23:42:04 GMT


chad> Does anyone know the purpose of libg.a or where to get it? I was
chad> getting link errors like "libg.a not found", and sure enough, I don't
chad> have it. By doing an "ln -s <..>/libg++.a libg.a", everything seems
chad> to work. I checked around on a Sun & an HP, and libg.a is only 68 bytes,
chad> with no symbol list. What gives?

Create an empty libg.a in /usr/lib. The following will work.

ar cr libg.a /dev/null
ar d libg.a /dev/null

chad> Also, "ld" doesn't work at all, while linking with "gcc" or "g++" does.
chad> Might I need a new version of ld? BTW, I'm using gcc 2.11c.

Try using "gcc -v" to see the ld command that is normally run. The libraries
are in odd places. Try it for both "gcc -v" and "gcc -v static." Mimic
what you see happening there.

-- 
Rick Sladkey
jrs@world.std.com