This is the mail archive of the 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.


---------- Forwarded message ----------
From: Chris Morgan <>
Date: Tuesday, June 8, 2010
Subject: Using crosstool-ng 1.7.0, unable to find -lstdc++when compiling c++


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

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

~/test$ ~/x-tools/arm-unknown-eabi/bin/arm-unknown-eabi-g++ simple.cpp
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?


For unsubscribe information see

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