linux-mips
[Top] [All Lists]

Re: Why the program complied by mips-linux-g++ cann't run on the target

To: Li Shishan <lishishan@utstar.com>
Subject: Re: Why the program complied by mips-linux-g++ cann't run on the target machine
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Sat, 4 Sep 2004 22:43:54 +0200 (MEST)
Cc: Linux/MIPS Development <linux-mips@linux-mips.org>
In-reply-to: <BA3B937FD9473E41998E125463A3914301C68183@cnmail01.cn.utstarcom.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <BA3B937FD9473E41998E125463A3914301C68183@cnmail01.cn.utstarcom.com>
Sender: linux-mips-bounce@linux-mips.org
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>