From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21500 invoked by alias); 7 Jun 2007 13:25:25 -0000 Received: (qmail 21480 invoked by uid 22791); 7 Jun 2007 13:25:24 -0000 X-Spam-Check-By: sourceware.org Received: from s200aog11.obsmtp.com (HELO s200aog11.obsmtp.com) (207.126.144.125) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 07 Jun 2007 13:25:18 +0000 Received: from source ([195.11.201.4]) by eu1sys200aob011.postini.com ([207.126.147.11]) with SMTP; Thu, 07 Jun 2007 13:23:27 UTC Received: from 10.44.0.112 ([10.44.0.112]) by NIXABDN-EXCH.nautronix.co.uk ([10.44.0.4]) with Microsoft Exchange Server HTTP-DAV ; Thu, 7 Jun 2007 13:15:14 +0000 Received: from johnm-desktop by mailhost.nautronix.co.uk; 07 Jun 2007 14:15:13 +0100 From: John Macdonald To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 07 Jun 2007 18:18:00 -0000 Message-Id: <1181222113.10765.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] arm-elf-g++ problem X-SW-Source: 2007-06/txt/msg00084.txt.bz2 Hello, I am trying to compile some software for the Atmel AT91 processor under eCos. However, I am having trouble with my compiler. I built the arm-elf toolchain using the instructions on the eCos website. I then used the eCos configtool to configure eCos for the default Atmel evaluation board (EB40). However, if I try to compile: //#include #include int main() { // printf("Hello\n\r"); cout << "Hello\n"; } Using the command: arm-elf-g++ -I /home/johnm/ecos-work/arm_install/include test1.cpp -c Then I get lots of errors. The included directory was produced by the eCos configtool. The first block of errors are: johnm@johnm-desktop:~/ecos_play$ arm-elf-g++ -I /home/johnm/ecos-work/arm_install/include test1.cpp -c In file included from /home/johnm/ecos_toolchain/gnutools/arm-elf/include/arm-elf/bits/c ++io.h:35, from /home/johnm/ecos_toolchain/gnutools/arm-elf/include/bits/fpos.h:44, from /home/johnm/ecos_toolchain/gnutools/arm-elf/include/iosfwd:46, from /home/johnm/ecos_toolchain/gnutools/arm-elf/include/ios:44, from /home/johnm/ecos_toolchain/gnutools/arm-elf/include/ostream:45, from /home/johnm/ecos_toolchain/gnutools/arm-elf/include/iostream:45, from test1.cpp:2: /home/johnm/ecos_toolchain/gnutools/arm-elf/include/cstdio:129: `remove' not declared /home/johnm/ecos_toolchain/gnutools/arm-elf/include/cstdio:130: `rename' not declared /home/johnm/ecos_toolchain/gnutools/arm-elf/include/cstdio:137: `tmpfile' not declared /home/johnm/ecos_toolchain/gnutools/arm-elf/include/cstdio:138: `tmpnam' not declared If I comment out the C++ lines and comment in the C lines then an object file is successfully produced. Does anyone know what is wrong here. Regards, John Macdonald --------------------------------------------------------------------- This email has been scanned for Nautronix Plc, by the Postini Message Security System. --------------------------------------------------------------------- -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss