This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
compiling c++ with ecos
- From: Jörn Seger <joern dot seger at udo dot edu>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 15 Jul 2004 15:11:34 +0200
- Subject: [ECOS] compiling c++ with ecos
- Organization: Uni Dortmund
Hi there,
(I'm sorry if this question was asked befor, but the ht-dig is not able to
find names like "c++" ;-))
I've got a strange problem here while cross-compiling an project for an arm
embedded processor.
I compiled a very simple hello world programm and compiled it as said in the
Users Guide. Then I try to compile it with
#include<iostream> instead of <stdio.h>
and with std::cout<< instead of printf
and then the output looks like below.
HISTORY:
For toolchain building, I used the instructions on the ecos-webside (with
binutils-2.13.1, gcc-3.2.1(core and c++), insight-5.3, newlib 1.11.0 and all
the patches available for arm-elf)
I compiled ecos (and the configtool) as it was shiped by the AIM711 (version
said it was from 19.Feb.2004 (cvs??)) and used the description for
installation on SuSE by a friendly guy from the net (can't remember his name)
Then I created a project from a template shiped with AIM711 and compiled the
hello world - what worked fine until I try to compile c++-code
Thanks in advance -
Jörn
COMPILER-OUTPUT:
joern@titus:~/Uni/ecos/minimal> arm-elf-g++ -c -I ecos_install/include
-fno-rtti -fno-exceptions main.cpp
In file included from
/opt/ecos/gnutools/arm-elf/include/bits/stl_algobase.h:67,
from /opt/ecos/gnutools/arm-elf/include/memory:54,
from /opt/ecos/gnutools/arm-elf/include/string:48,
from /opt/ecos/gnutools/arm-elf/include/bits/localefwd.h:49,
from /opt/ecos/gnutools/arm-elf/include/ios:48,
from /opt/ecos/gnutools/arm-elf/include/ostream:45,
from /opt/ecos/gnutools/arm-elf/include/iostream:45,
from main.cpp:6:
/opt/ecos/gnutools/arm-elf/include/cstdlib:92: `atof' not declared
/opt/ecos/gnutools/arm-elf/include/cstdlib:111: `strtod' not declared
In file included from
/opt/ecos/gnutools/arm-elf/include/bits/locale_facets.h:63,
from /opt/ecos/gnutools/arm-elf/include/bits/basic_ios.h:41,
from /opt/ecos/gnutools/arm-elf/include/ios:51,
from /opt/ecos/gnutools/arm-elf/include/ostream:45,
from /opt/ecos/gnutools/arm-elf/include/iostream:45,
from main.cpp:6:
/opt/ecos/gnutools/arm-elf/include/arm-elf/bits/ctype_base.h:46: `_U' was not
declared in this scope
/opt/ecos/gnutools/arm-elf/include/arm-elf/bits/ctype_base.h:47: `_L' was not
declared in this scope
/opt/ecos/gnutools/arm-elf/include/arm-elf/bits/ctype_base.h:48: `_U' was not
declared in this scope
/opt/ecos/gnutools/arm-elf/include/arm-elf/bits/ctype_base.h:48: `_L' was not
declared in this scope
/opt/ecos/gnutools/arm-elf/include/arm-elf/bits/ctype_base.h:49: `_N' was not
declared in this scope
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss