ELDK/DENX: doesn't find iostream-lib when linking

Wolfgang Denk wd at denx.de
Thu May 12 19:47:07 EST 2005


In message <25101.1115889218 at www45.gmx.net> you wrote:
> I use a makefile with dependencies:

I asked for the COMMANDS used, not for a Makefile. A log of the build
process would have been more useful, but anyway...

> compiler = ${CROSS_COMPILE}gcc
...
> 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
...

> Are they defined wrong?

You are using the wrong compiler. GCC is a C Compiler,  but  you  are
trying  to compile and link C++ code. GCC does not know how to handle
this. Please use a C++ compiler - i. e. "g++" - instead.

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
Unix is like a toll road on which you have to stop every 50  feet  to
pay another nickel. But hey! You only feel 5 cents poorer each time.
                 - Larry Wall in <1992Aug13.192357.15731 at netlabs.com>



More information about the Linuxppc-embedded mailing list