* [ECOS] HELP:Error compiling cpp helloworld program
@ 2009-02-13 5:42 vibisreenivasan
2009-02-13 11:44 ` Ross Younger
0 siblings, 1 reply; 3+ messages in thread
From: vibisreenivasan @ 2009-02-13 5:42 UTC (permalink / raw)
To: ecos-discuss
Hello,
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
cpptest.cxx
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-bugurl=http://bugs.ecos.sourceware.org/
--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
vibi
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] HELP:Error compiling cpp helloworld program
2009-02-13 5:42 [ECOS] HELP:Error compiling cpp helloworld program vibisreenivasan
@ 2009-02-13 11:44 ` Ross Younger
2009-02-16 6:43 ` vibisreenivasan
0 siblings, 1 reply; 3+ messages in thread
From: Ross Younger @ 2009-02-13 11:44 UTC (permalink / raw)
To: ecos-discuss
vibisreenivasan wrote:
> i was trying to compile a cpp application with ecos.
> i got the following errors.
The public eCos project only includes support for the basic C++ language
(classes and user-written templates). libstdc++ is not supported: you cannot
use exceptions, RTTI, STL, nor iostream or other C++ language headers.
eCosPro includes support for libstdc++.
Ross
--
Embedded Software Engineer, eCosCentric Limited.
Barnwell House, Barnwell Drive, Cambridge CB5 8UU, UK.
Registered in England no. 4422071. www.ecoscentric.com
Besuchen Sie uns vom 3.-5.03.09 auf der Embedded World 2009, Stand 11-300
Visit us at Embedded World 2009, Nürnberg, Germany, 3-5 Mar, Stand 11-300
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] HELP:Error compiling cpp helloworld program
2009-02-13 11:44 ` Ross Younger
@ 2009-02-16 6:43 ` vibisreenivasan
0 siblings, 0 replies; 3+ messages in thread
From: vibisreenivasan @ 2009-02-16 6:43 UTC (permalink / raw)
To: Ross Younger; +Cc: ecos-discuss
hello Ross,
thanks for your reply
thanks & regards
vibi
On Fri, 2009-02-13 at 11:44 +0000, Ross Younger wrote:
> vibisreenivasan wrote:
> > i was trying to compile a cpp application with ecos.
> > i got the following errors.
>
> The public eCos project only includes support for the basic C++ language
> (classes and user-written templates). libstdc++ is not supported: you cannot
> use exceptions, RTTI, STL, nor iostream or other C++ language headers.
> eCosPro includes support for libstdc++.
>
>
> Ross
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-16 6:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-13 5:42 [ECOS] HELP:Error compiling cpp helloworld program vibisreenivasan
2009-02-13 11:44 ` Ross Younger
2009-02-16 6:43 ` vibisreenivasan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).