This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: Using crosstool-ng 1.7.0, unable to find -lstdc++when compiling c++


Think I sent this to the wrong address at first.

Chris

---------- Forwarded message ----------
From: Chris Morgan <chmorgan@gmail.com>
Date: Tuesday, June 8, 2010
Subject: Using crosstool-ng 1.7.0, unable to find -lstdc++when compiling c++
To: yann.morin.1998@anciens.enib.fr, crossgcc-digest@sourceware.org


Hello.

Using crosstool-ng 1.7.0 I built an arm toolchain, software fpu, c++
enabled and with no other odd options like where the help or
overview.txt recommend not using.

I can compile c applications:

$ ~/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-gcc timeval_size.c
cmorgan@cmorgan-laptop:~/test$ file a.out
a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically
linked, not stripped
cmorgan@cmorgan-laptop:~/test$

but when attempting to compile c++ applications I'm seeing:

~/test$ ~/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-g++ simple.cpp
/home/cmorgan/x-tools/arm-unknown-eabi/lib/gcc/arm-unknown-eabi/4.4.3/../../../../arm-unknown-eabi/bin/ld:
cannot find -lstdc++
collect2: ld returned 1 exit status

I went looking for libstdc++ thinking maybe I needed to build and
install libstdc++ against the generated toolchain but the gnu page I
found says its part of gcc now.

What am I missing here?

Chris

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]