[ECOS] Howto get basic STL running

Øyvind Harboe oyvind.harboe@zylin.com
Wed Jan 21 12:43:00 GMT 2004


> You just have to download STLPort library for www.stlport.org
> 
> Then include it into your project.
> 
> I have made some hacks, so that it compiles. Most of them are quick and dirty,
>  but they work fine for me. Hopefully someone more gifted than me can improve
>  them and feed them back to the list.
> I have attached a patch (against STLPort 4.6).

I've applied the patch(there was a small bump in the road, since my
patch command didn't grok the patch format, fixed patch attached), but I
run into problems with include files which I don't understand.

>From my toolchain:

./ecos/gnutools/arm-elf/arm-elf/include/bits/functexcept.h
./ecos/gnutools/arm-elf/arm-elf/include/exception
./ecos/gnutools/arm-elf/arm-elf/include/exception_defines.h
./ecos/gnutools/arm-elf/arm-elf/include/stdexcept

Here is the error messsage:

arm-elf-g++ -MP -MT 'output/stlport/stl/_vector.o' -MT
'output/stlport/stl/_vector.d' -M -MF output/stlport/stl/_vector.d
-I/cygdrive/c/e21/workspace/firmware/stlport -I../romapp/install/include
-I. -mcpu=arm7tdmi -mno-short-load-words -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
-fvtable-gc -finit-priority  -O0 -fexceptions -fno-vtable-gc 
-I../gnutools/arm-elf/arm-elf/include stlport/stl/_vector.c
In file included from
/cygdrive/c/e21/workspace/firmware/stlport/config/stlcomp.h:54,
                 from
/cygdrive/c/e21/workspace/firmware/stlport/stl/_config.h:74,
                 from
/cygdrive/c/e21/workspace/firmware/stlport/stl/_prolog.h:10,
                 from
/cygdrive/c/e21/workspace/firmware/stlport/cstddef:23,
                 from
/cygdrive/c/e21/workspace/firmware/stlport/stl/_algobase.h:35,
                 from
/cygdrive/c/e21/workspace/firmware/stlport/stl/_vector.h:36,
                 from stlport/stl/_vector.c:30:
/cygdrive/c/e21/workspace/firmware/stlport/config/stl_gcc.h:266:34:
warning: "__APPLE__" is not defined
In file included from
/cygdrive/c/e21/workspace/firmware/stlport/stl/_alloc.h:68,
                 from
/cygdrive/c/e21/workspace/firmware/stlport/stl/_vector.h:40,
                 from stlport/stl/_vector.c:30:
/cygdrive/c/e21/workspace/firmware/stlport/stl/_construct.h:57:6:
warning: "_MSC_VER" is not defined
In file included from
/cygdrive/c/e21/workspace/firmware/stlport/stdexcept:37,
                 from
/cygdrive/c/e21/workspace/firmware/stlport/stl/_range_errors.h:47,
                 from
/cygdrive/c/e21/workspace/firmware/stlport/stl/_vector.h:52,
                 from stlport/stl/_vector.c:30:
/cygdrive/c/e21/workspace/firmware/stlport/exception:58:56:
../3.2.1/exception.h: No such file or directory
make: *** [output/stlport/stl/_vector.d] Error 1



-------------- next part --------------
A non-text attachment was scrubbed...
Name: stlpatch.txt
Type: text/x-patch
Size: 4682 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040121/5560ac09/attachment.bin>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


More information about the Ecos-discuss mailing list