Guest
#1172445
I have used arm-elf-gcc at many times with Cstartup.S and Windows Program must run under ARM. When have tried change c to c++ caused this error: Linking: main.elf arm-elf-gcc -mcpu=arm7tdmi -I. -gdwarf-2 -DROM_RUN -DVECTORS_ROM -Os -Wall -W cast-align -Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=Cstartup.lst -MD -MP -MF .dep/main.elf.d Cstartu p.o main.o mem_seg.o mem_seg_impl.o segment.o Cstartup_SAM7.o blinker.o li b_AT91SAM7X256.o std_comm.o --output main.elf -nostartfiles -Wl,-Map=main.map,-- cref -shared -lm -lc -lgcc -dead_strip -lstdc++ --gc-sections -TAT91SAM7x256-R OM.ld c:/winarm/bin/../lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib\libstdc++ .a(eh_pe rsonality.o): In function `read_encoded_value_with_base':c:/winarms/gcc-4.1.0/gc c/unwind-pe.h:259: undefined reference to `abort' c:/winarm/bin/../lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib\libstdc++ .a(eh_pe rsonality.o): In function `base_of_encoded_value':c:/winarms/gcc-4.1.0/gcc/unwin d-pe.h:122: undefined reference to `abort' :c:/winarms/gcc-4.1.0/gcc/unwind-pe.h:122: undefined reference to `abort' c:/winarm/bin/../lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib\libstdc++ .a(eh_pe rsonality.o): In function `size_of_encoded_value':c:/winarms/gcc-4.1.0/gcc/unwin d-pe.h:90: undefined reference to `abort' c:/winarm/bin/../lib/gcc/arm-elf/4.1.0/../../../../arm-elf/lib\libstdc++ .a(eh_te rminate.o): In function `__cxxabiv1::__terminate(void (*)())':../../../../../gcc -4.1.0/libstdc++-v3/libsupc++/eh_terminate.cc:44: undefined reference to `abort' etc. etc. common functions seems missing. I have read some issues like this but cannot find a solution. Any ideas?