This is the mail archive of the mailing list for the eCos project.

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

HELP:Error compiling cpp helloworld program

	i was trying to compile a cpp application with ecos.
	i got the following errors.

arm-eabi-g++ -c -o output.o -I/opt/ecos/tnw/install//include -Wall
-Wpointer-arith -Wstrict-prototypes -Wundef -Woverloaded-virtual
-Wno-write-strings -mno-thumb-interwork -mcpu=arm7tdmi -g -O2
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++
In file included
from /opt/ecos/newtoolchain/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/include/c++/4.3.2/bits/char_traits.h:48,

from /opt/ecos/newtoolchain/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/include/c++/4.3.2/ios:46,

from /opt/ecos/newtoolchain/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/include/c++/4.3.2/ostream:45,

from /opt/ecos/newtoolchain/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/include/c++/4.3.2/iostream:45,
                 from cpptest.cxx:1:
/opt/ecos/newtoolchain/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/include/c++/4.3.2/cstdio:50:24: error: stdio.h: No such file or directory

application is a simple helloworld program

#include <iostream>
using namespace std;
int main ()
	cerr << "cpp pgm running";

gcc specification

arm-eabi-gcc -###
Using built-in specs.
Target: arm-eabi
Configured with: /home/test/src/toolchains/gcc/gcc-4.3.2/configure -v
--target=arm-eabi --prefix=/home/test/build/toolchains/arm-eabi/tools
--with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c,c++
--disable-__cxa_atexit --enable-threads
--with-pkgversion='eCosCentric GNU tools 4.3.2-sw' --with-cpu=arm7tdmi
--with-gmp=/opt/gmp-4.2.2 --with-mpfr=/opt/mpfr-2.3.0
Thread model: single
gcc version 4.3.2 (eCosCentric GNU tools 4.3.2-sw) 

Is there any problem with the method i am following ? please help.

thanks & regards

Before posting, please read the FAQ:
and search the list archive:

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