Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 1996 06:44:53 -0500 (EST)
From:      Peter Dufault <dufault@hda.com>
To:        andreas@knobel.gun.de (Andreas Klemm)
Cc:        asami@CS.Berkeley.EDU, ports@FreeBSD.org
Subject:   "ld: -lstdc++: no match" with pgcc
Message-ID:  <199602101144.GAA09695@hda.com>
In-Reply-To: <199602012201.XAA03683@knobel.gun.de> from "Andreas Klemm" at Feb 1, 96 11:01:00 pm

next in thread | previous in thread | raw e-mail | index | archive | help
I tried to use pgcc-2.7.2.7 and I get "-lstdc++: no match":

> rt# /usr/local/bin/g++ -v hello.cc
>  /usr/local/bin/gcc -v hello.cc -lg++ -lstdc++ -lm
> Reading specs from /usr/local/lib/gcc-lib/pentium-unknown-freebsd/2.7.2p/specs
> gcc version 2.7.2p
>  /usr/local/lib/gcc-lib/pentium-unknown-freebsd/2.7.2p/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -D__unix__ -D__i386__ -D__FreeBSD__ -D__386BSD__ -D__unix -D__i386 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386) hello.cc /var/tmp/cc013035.ii
> GNU CPP version 2.7.2p (80386, BSD syntax)
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/local/lib/g++-include
>  /usr/local/include
>  /usr/local/pentium-unknown-freebsd/include
>  /usr/local/lib/gcc-lib/pentium-unknown-freebsd/2.7.2p/include
>  /usr/include
> End of search list.
>  /usr/local/lib/gcc-lib/pentium-unknown-freebsd/2.7.2p/cc1plus /var/tmp/cc013035.ii -quiet -dumpbase hello.cc -version -o /var/tmp/cc013035.s
> GNU C++ version 2.7.2p (80386, BSD syntax) [Intel386 cpu]  compiled by GNU C version 2.6.3.
> hello.cc: In function `int main()':
> hello.cc:3: warning: implicit declaration of function `int printf(...)'
>  as -o /var/tmp/cc0130351.o /var/tmp/cc013035.s
>  ld -e start -dc -dp /usr/lib/crt0.o -L/usr/local/lib/gcc-lib/pentium-unknown-freebsd/2.7.2p -L/usr/local/lib /var/tmp/cc0130351.o -lg++ -lstdc++ -lm -lgcc -lc -lgcc
> ld: -lstdc++: no match

-- 
Peter Dufault               Real-Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602101144.GAA09695>