| To: | "Geert Uytterhoeven" <geert@linux-m68k.org> |
|---|---|
| Subject: | RE: Why the program complied by mips-linux-g++ cann't run on the target machine |
| From: | "Li Shishan" <lishishan@utstar.com> |
| Date: | Sun, 5 Sep 2004 12:39:09 +0800 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Resent-date: | Sun, 5 Sep 2004 09:58:04 +0200 (MEST) |
| Resent-from: | Geert Uytterhoeven <geert@sonycom.com> |
| Resent-message-id: | <Pine.GSO.4.58.0409050958040.28961@waterleaf.sonytel.be> |
| Resent-subject: | RE: Why the program complied by mips-linux-g++ cann't run on the target machine |
| Resent-to: | Linux/MIPS Development <linux-mips@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
| Thread-index: | AcSSwALHqU97jn0tTjOzJ6GCeF/nagAOZQEw |
| Thread-topic: | Why the program complied by mips-linux-g++ cann't run on the target machine |
Hi Geert:
I am very appreciated to your reply, thank you very much !!!
When I excute the command : ldd ./ccgame, give result : ./ldd: not
found . what can I do for that ?
If as you say ,require the c++ runtime libraries on the target .
firstly , my test program is coded by C ,not C++ , if it also require c++
libraries?
secondly, my target flash is very limited, the C++ runtime libraries is very
large .
-----Original Message-----
From: geert@sonycom.com [mailto:geert@sonycom.com]On Behalf Of Geert
Uytterhoeven
Sent: 2004年9月5日 4:44
To: Li Shishan
Cc: Linux/MIPS Development
Subject: Re: Why the program complied by mips-linux-g++ cann't run on
the target machine
On Sat, 4 Sep 2004, Li Shishan wrote:
> I use the mips-linux-g++ complie a program. and I excuted
> it on the target machine , but cann't, what's wrong?
>
> For example:
>
> For PC, I use g++ -c -o ccgame.o ccgame.cpp
> g++ -o ccgame ./ccgame.o
> execute it will give: Hello, world!
>
> For the target board, I use mips-linux-g++ -c -o ccgame.o
> ccgame.cpp
> mips-linux-g++ -o ccgame
> ./ccgame.o
> excute it will give " /bin/sh: ./ccgame: not found".
>
> Is there something wrong?
Look like you didn't install the C++ runtime libraries on the target.
What does `ldd ./ccgame' say?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] MIPS/gcc: Revert removal of DImode shifts for 32-bit targets, Richard Henderson |
|---|---|
| Next by Date: | RE: Why the program complied by mips-linux-g++ cann't run on the target machine, Geert Uytterhoeven |
| Previous by Thread: | How to compile the binutils-2.13.2.1.tar.gz build for mips, Li Shishan |
| Next by Thread: | RE: Why the program complied by mips-linux-g++ cann't run on the target machine, Geert Uytterhoeven |
| Indexes: | [Date] [Thread] [Top] [All Lists] |