* Re: 3.1.1--/usr/bin/ld: cannot find -lstdc++
@ 2002-05-30 17:05 Peter Kurpis
0 siblings, 0 replies; 2+ messages in thread
From: Peter Kurpis @ 2002-05-30 17:05 UTC (permalink / raw)
To: boldi01; +Cc: gcc-help
> After I tried to complie id3lib 3.8.0 but:
> checking for c++... c++
> checking whether the C++ compiler (c++ ) works... no
> configure: error: installation or configuration problem: C++ compiler
> cannot create executables.
>
> In configure.log:
>
> configure:1838: checking for c++
> configure:1870: checking whether the C++ compiler (c++ ) works
> configure:1886: c++ -o conftest conftest.C 1>&5
> /usr/bin/ld: cannot find -lstdc++
Although gcc finds libc okay by default, g++ doen't necessarily
find libstdc++ by default. This is because the directory libc
is usually in (e.g. /usr/lib) is in the ld search path, but the
directory libstdc++ is installed into (e.g. /usr/local/lib) is not.
You need to tell g++ where to look explicitly. This depends on
your system. On Solaris, a "quick and dirty" way is to set
the environment variable LD_LIBRARY_PATH to /usr/local/bin
(or wherever libstdc++ is located). In some builds, you could
try adding the makefile macro
LDFLAGS += -Wl,-R/usr/local/lib
or
LDFLAGS += -Wl,-rpath/usr/local/lib
depending on which ld you're using (in this case Solaris /usr/ccs/bin/ld
or GNU ld). This would hardwire the path to libstdc++.so into the
executable.
^ permalink raw reply [flat|nested] 2+ messages in thread
* 3.1.1--/usr/bin/ld: cannot find -lstdc++
@ 2002-05-30 13:46 Boldizsar Nagy
0 siblings, 0 replies; 2+ messages in thread
From: Boldizsar Nagy @ 2002-05-30 13:46 UTC (permalink / raw)
To: gcc-help, libstdc++
Hi!
I upgraded to gcc 3.1.1 (config in signature). These files were installed:
binutils-2.12.90.0.4-1.i686.rpm libg2c-3.1-1.i686.rpm
cpp-3.1-1.i686.rpm libgcc-3.1-1.i686.rpm
gcc-3.1-1.i686.rpm libgcj-3.1-1.i686.rpm
gcc-c++-3.1-1.i686.rpm libgcj-devel-3.1-1.i686.rpm
gcc-g77-3.1-1.i686.rpm libobjc-1.0.0-1.i686.rpm
gcc-java-3.1-1.i686.rpm libstdc++-3.1-1.i386.rpm
gcc-objc-3.1-1.i686.rpm libstdc++-devel-3.1-1.i386.rpm
After I tried to complie id3lib 3.8.0 but:
checking for c++... c++
checking whether the C++ compiler (c++ ) works... no
configure: error: installation or configuration problem: C++ compiler
cannot create executables.
In configure.log:
configure:1838: checking for c++
configure:1870: checking whether the C++ compiler (c++ ) works
configure:1886: c++ -o conftest conftest.C 1>&5
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
configure: failed program was:
#line 1881 "configure"
#include "confdefs.h"
int main(){return(0);
What could be the problem?
Thanks in advance for Your answer, sorry for my bad english, and long
email. Best regards
---------------------------------------------------------
Boldizsar Nagy, Hungary Student of GIMSZ, Szombathely
Email: boldi01@freemail.hu UIN:128456310
RedHat 7.2, 2.4.9-31, PIII 700, 192 SD, Nvidia Gf2mx400
---------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-31 0:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-30 17:05 3.1.1--/usr/bin/ld: cannot find -lstdc++ Peter Kurpis
-- strict thread matches above, loose matches on Subject: below --
2002-05-30 13:46 Boldizsar Nagy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).