This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

#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


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]