Article View: gnu.g++.lib.bug
Article #445finding installed libg++
From: Damon Lipparelli
Date: Tue, 12 Jan 1993 00:44
Date: Tue, 12 Jan 1993 00:44
32 lines
1369 bytes
1369 bytes
On an HP700 system, I've built libg++ 2.3 with gcc 2.3.3. It gets
installed automatically into $(somedir)/lib/libg++.a (where $(somedir) is
determined by the configuration stage). However, gcc doesn't look for
libg++.a by default and can't seem to find it if I specify it as -lg++ on
the command line.
I tried compiling the following program with "gcc -o tst tst.cc"
and gcc died with two or three unresolved symbol errors. When I tried to
compile it with "gcc -o tst tst.cc -lg++", gcc said that it couldn't find
"-lg++". This is all very strange since gcc doesn't have any trouble
finding the installed libg++ header files.
Is there something I'm missing?
Thanks for any information,
-lipp
ps: Here is the test source.
// "tst.cc"
#include <iostream.h>
main()
{
cerr << "here is some output" << endl;
}
--
Damon Lipparelli
Sierra Geophysics, Inc.
ARPA: lipp@sierra.com, UUNET: uunet!sgihbtn!lipp
Phone: (206) 822-5200 (x375)
Technical Details
Message-ID:
<9301120044.AA08851@sierra.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sierra.COM!lippShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sierra.COM!lipp From: lipp@sierra.COM (Damon Lipparelli) Subject: finding installed libg++ Message-ID: <9301120044.AA08851@sierra.com> Sender: gnulists@ai.mit.edu Organization: Sierra Geophysics Inc., Kirkland, Wa Distribution: gnu Date: Tue, 12 Jan 1993 00:44:17 GMT Approved: bug-lib-g++@prep.ai.mit.edu Lines: 33