Article View: gnu.gcc.help
Article #51626Difficulty finding libraries (and installing libg++)
From: Eric M. Boehm
Date: Mon, 26 Apr 1993 10:37
Date: Mon, 26 Apr 1993 10:37
43 lines
2492 bytes
2492 bytes
Hello, I am having difficulty installing libg++. When the installation gets to libg++/test-install, it bombs as follows: /usr/net/bin/gcc -o a a.o -lg++ ld: Can't find library for -lg++ collect: /bin/ld returned 1 exit status I tried a sample program, the ubiquitous hello.c and received an even more confusing error result: gcc -o hello hello.c -lgcc Reading specs from /usr/net/lib/gcc-lib/hp700-hpux/2.3.3/specs gcc version 2.3.3 /usr/net/lib/gcc-lib/hp700-hpux/2.3.3/cpp -lang-c -v -undef -D__GNUC__=2 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D___HPUX_SOURCE__ -D__hppa -D__hp9000s800 -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -D___HPUX_SOURCE -D__hp9000s700 -D_PA_RISC1_1 -D__hp9000s700 -D_PA_RISC1_1 hello.c /usr/tmp/cca08371.i GNU CPP version 2.3.3 (hppa) /usr/net/lib/gcc-lib/hp700-hpux/2.3.3/cc1 /usr/tmp/cca08371.i -quiet -dumpbase hello.c -version -o /usr/tmp/cca08371.s GNU C version 2.3.3 (hppa) compiled by GNU C version 2.3.3. /usr/net/lib/gcc-lib/hp700-hpux/2.3.3/as -o /usr/tmp/cca083711.o /usr/tmp/cca08371.s /usr/net/lib/gcc-lib/hp700-hpux/2.3.3/ld -u main -a archive -o hello /lib/crt0.o /usr/tmp/cca083711.o -lgcc /usr/net/lib/gcc-lib/hp700-hpux/2.3.3/libgcc.a -lc /usr/net/lib/gcc-lib/hp700-hpux/2.3.3/libgcc.a ld: Can't find library for -lgcc collect: /bin/ld returned 1 exit status I tried setting LIBRARY_PATH but that had no effect. I am confused that it specifices libgcc.a above but can't seem to find it when I specify it exactly. Did I screw up something in installing gcc or is it a problem with /bin/ld. This was run on an HP 9000 715/50 running HPUX 9.01. Thanks in advance. -- Eric M. Boehm Eric.Boehm@union.edu BOEHME@UNION.BITNET
Technical Details
Message-ID:
<1993Apr26.103757.17608@unvax.union.edu>Path:
arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!noc.near.net!uunet!psinntp!unvax.union.edu!boehmeShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,6136ecacb147dac5,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-04-26 04:26:05 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!noc.near.net!uunet!psinntp!unvax.union.edu!boehme From: boehme@unvax.union.edu (Eric M. Boehm) Subject: Difficulty finding libraries (and installing libg++) Message-ID: <1993Apr26.103757.17608@unvax.union.edu> Keywords: gcc 2.3.3 libg++ LIBRARY_PATH Reply-To: Eric.Boehm@union.edu Organization: Union College, Schenectady, NY Date: Mon, 26 Apr 1993 10:37:57 GMT Lines: 43