* Linker problem
@ 2002-10-22 7:54 Flavio Pereira
2002-10-22 8:12 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Flavio Pereira @ 2002-10-22 7:54 UTC (permalink / raw)
To: linuxppc-embedded
Hi All
Im trying to cross compile some c++ code for the 8260 chip. However when
the linker executes it return the following error:
undefined reference to `__throw'
Can anyone please give some advice on how to tackle this problem? What
does this mean? Does it have anything to do with c++ libraries??? Im
using the cross compile environment set up by the ELDK Kit from DENX.
Regards
Flavio Pereira
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linker problem
2002-10-22 7:54 Flavio Pereira
@ 2002-10-22 8:12 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2002-10-22 8:12 UTC (permalink / raw)
To: Flavio Pereira; +Cc: linuxppc-embedded
In message <1E354700654661418593A0D6B5A9D41008946D@mail.azisa.co.za> you wrote:
>
> Im trying to cross compile some c++ code for the 8260 chip. However when
> the linker executes it return the following error:
>
> undefined reference to `__throw'
Can you show us your example code, and the commands you use to
compile and link it?
Does it work with the native (x86) C++ compiler?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Make it right before you make it faster.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linker problem
[not found] <1E354700654661418593A0D6B5A9D410089470@mail.azisa.co.za>
@ 2002-10-22 17:41 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2002-10-22 17:41 UTC (permalink / raw)
To: Flavio Pereira; +Cc: linuxppc-embedded
Dear Flavio,
in message <1E354700654661418593A0D6B5A9D410089470@mail.azisa.co.za> you wrote:
>
> Looks like it was a mistake that some people with term "useless" but hey
> I'm still learning. I was using LD directly to link and it doesn't
> automatically include the library files needed for c++. So when I
> switched to g++ for the linking it solved most of these system errors
> (__throw etc..). G++ however tries to include a -lstdg++ file which
> doesn't exist. So I had to use gcc and force link the libstdc++.a
You must be doing something wrong here. The g++ as included with our
ELDK does not reference any "-lstdg++". Can you please show us some
(simple) exaqmple source and the exact command line you use, so we
can test if there is really a problem, or just a usage error?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
I can't say I've ever been lost, but I was bewildered once for three
days. - Daniel Boone (Attributed)
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-22 17:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1E354700654661418593A0D6B5A9D410089470@mail.azisa.co.za>
2002-10-22 17:41 ` Linker problem Wolfgang Denk
2002-10-22 7:54 Flavio Pereira
2002-10-22 8:12 ` Wolfgang Denk
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 NNTP newsgroup(s).