ELDK/DENX: doesn't find iostream-lib when linking
Peter Gehirnforce
Gehirnmann at gmx.de
Thu May 12 19:13:38 EST 2005
I use a makefile with dependencies:
--------------------------------------------------
# Makefile for simple test program
# The CROSS_COMPILE is set globally, as well as ELDK gcc-paths
compiler = ${CROSS_COMPILE}gcc
simple_server_objects = ServerSocket.o Socket.o simple_server_main.o
simple_client_objects = ClientSocket.o Socket.o simple_client_main.o
all : Socket ServerSocket simple_server_main simple_server ClientSocket
simple_c
lient_main simple_client
simple_server: $(simple_server_objects)
$(compiler) -o simple_server $(simple_server_objects)
simple_client: $(simple_client_objects)
$(compiler) -o simple_client $(simple_client_objects)
#ppc_gcc dependencies, added for compiling with ppc only!!
Socket:
$(compiler) -o Socket.o -c Socket.cpp
ServerSocket: Socket.o
$(compiler) -o ServerSocket.o -c ServerSocket.cpp
ClientSocket: Socket.o
$(compiler) -o ClientSocket.o -c ClientSocket.cpp
simple_server_main: ServerSocket.o
$(compiler) -o simple_server_main.o -c simple_server_main.cpp
simple_client_main: ClientSocket.o
$(compiler) -o simple_client_main.o -c simple_client_main.cpp
clean:
rm -f *.o simple_server simple_client
------------------------------------------------
The program itself is using <string> <iostream> and other STL libs with
namespaces in use.
It compiles for i686 on my host machine.
BUT I had to change the Makefile!!! (that is why I posted it)
The dependencies starting from "gcc-ppc" dependencies are added.
Are they defined wrong?
Peter
> --- Ursprüngliche Nachricht ---
> Von: Wolfgang Denk <wd at denx.de>
> An: "Peter Gehirnforce" <Gehirnmann at gmx.de>
> Kopie: etux at embeddedtux.org
> Betreff: Re: ELDK/DENX: doesn't find iostream-lib when linking
> Datum: Thu, 12 May 2005 09:46:10 +0200
>
> In message <28918.1115882747 at www45.gmx.net> you wrote:
> >
> > when compiling for ppc_6xx architecture, the linker doesn't find the
> lib's
> > for iostream headers.
> > Do I have to use other headers than the standard <iostream> ones, or do
> they
> > simply not exist?
>
> I guess this is a usage error. Can you please provide a simple
> example which shows the problem?
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> What is research but a blind date with knowledge? -- Will Harvey
> _______________________________________________
> etux mailing list
> etux at embeddedtux.org
> http://www.embeddedtux.org/mailman/listinfo/etux
>
--
+++ Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS +++
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
More information about the Linuxppc-embedded
mailing list