This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: Can I use the dynamic memory allocation on the class object? Thanks a lot.


On Wed, Apr 30, 2003 at 11:43:11AM +0100, QiangHuang wrote:
> Thanks a lot. I just download the ecos repository via CVS,  I got the
> cxxsupp.cxx file in the ecos repository. I am based on the Altera excalibur
> platform. Any specify setting need to be done for the platform? when I try
> to link my program with ecos library I still have the same problem.
> while I try to build the test program I got the following error:
[..] 

> arm-elf-gcc --no-target-default-spec -Wl,-static -g -O2 -nostdlib -Wl,--fata
> l-warnings -L/ecos-e/epxa1_new_net/epxa1_new_net_install/lib -Ttarget.ld -o
> /ecos-e/epxa1_new_net/epxa1_new_net_install/tests/infra/current/tests/cxxsup
> p tests/cxxsupp.o
> /ecos-c/altera/EXCALI~1/SOPC_B~1/bin/ARM-GN~1/ARM9-0~1/bin/../lib/gcc-lib/ar
> m-elf/2.96-arm9-020528/../../../../arm-elf/bin/ld: unrecognized option
> `--fatal-warnings'
> collect2: ld returned 1 exit status
> make[1]: ***
> [/ecos-e/epxa1_new_net/epxa1_new_net_install/tests/infra/current/tests/cxxsu
> pp] Error 1
> make[1]: Leaving directory
> `/ecos-e/epxa1_new_net/epxa1_new_net_build/infra/current'
> make: *** [tests] Error 2
> 
> when linking with user application:
> 
>  warning: no memory region specified for section `.eh_frame'
> ./arm-elf/bin/ld: section .eh_frame [0009967c -> 00099f03] overlaps section
> .rodata [00094df0 -> 00116077]

What toolchain are you using?

/ecos-c/altera/EXCALI~1/SOPC_B~1/bin/ARM-GN~1/ARM9-0~1/bin/../lib/gcc-lib/ar
 m-elf/2.96-arm9-020528/../../../../arm-elf/bin/ld: unrecognized option

This suggests its not the recommended one. Get the upto date
toolchain. Look at http://sources.redhat.com/ecos/getstart.html.

           Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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