This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
#include <cstdio> gives compile errors with gcc-3.0.4 for arm-elf
- From: Jepsen Hans Peter <hans_peter_jepsen at Danfoss dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 1 Aug 2002 10:10:27 +0200
- Subject: [ECOS] #include <cstdio> gives compile errors with gcc-3.0.4 for arm-elf
Hello
We have recognized, that when we try to include <cstdio>, we get compile
errors. Example:
cd /vobs/f400/taskmodel/taskmodel/
clearmake -f /vobs/f400/taskmodel/taskmodel/taskmodel.mk
arm-elf-g++ -mcpu=arm7tdmi -c -o
/vobs/f400/taskmodel/taskmodel/taskmodel.o -g -Wall
-I/vobs/f400/ecos/EVMCAN_install/include -I/vobs/f400/ecos/EVMCAN_install
-I/vobs/f400/ecos/applications/Library/CSP
-I/vobs/f400/ecos/applications/Library/BSP -ffunction-sections
-fdata-sections -fno-exceptions -fno-rtti -finit-priority
/vobs/f400/taskmodel/taskmodel/taskmodel.cpp
In file included from /opt/local/gcc-3.0.4/arm-elf/include/g++-v3/cstdio:31,
from /vobs/f400/taskmodel/taskmodel/taskmodel.cpp:8:
/opt/local/gcc-3.0.4/arm-elf/include/g++-v3/bits/std_cstdio.h:118: `remove'
not
declared
/opt/local/gcc-3.0.4/arm-elf/include/g++-v3/bits/std_cstdio.h:119: `rename'
not
declared
/opt/local/gcc-3.0.4/arm-elf/include/g++-v3/bits/std_cstdio.h:126: `tmpfile'
not declared
/opt/local/gcc-3.0.4/arm-elf/include/g++-v3/bits/std_cstdio.h:127: `tmpnam'
not
declared
*** Error code 1
clearmake: Error: Build script failed for
"/vobs/f400/taskmodel/taskmodel/taskmodel.o"
The taskmodel contains just:
/** Taskmodel f400 @author HSL May 2002 */
#include <cstdio>
#ifdef halloo
.... many ignored lines
#endif
Any ideas on what is wrong, and how the get rid of this error?
We have the same problem with gcc-3.1 for arm-elf, gcc-3.0.4 for hpux, but
not with gcc for m68k (gcc version egcs-2.91.57)
kind regards
Hans Peter Jepsen
--
Hans Peter Jepsen Phone: +45 74 88 50 11
Danfoss Drives A/S, Fax: +45 74 88 32 26
DG-1204, Ulsnaes 1, Email: Hans_Peter_Jepsen@danfoss.com
DK-6300 Graasten, Denmark or: hpj@computer.org
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss