Forum: ARM programming with GCC/GNU tools __dso_handle problem at link time.

von Jonathan D. (dumarjo)

Rate this post
0 useful
not useful
Hi all,

I try to use a cpp class to use fixed point math library. So far i was
able to get everything work.

Now When I call a membre function of the class, i got an

undefined reference to `__dso_handle'

i'm not an expert at the configuration of cpp under the arm7.

here the complete link command

Linking: main2.elf
arm-elf-gcc -mthumb -mcpu=arm7tdmi -mthumb-interwork -I. -gdwarf-2
-D__WINARMBOARD_ATMEL_AT91SAM7S_EK__  -O2 -Wall -Wcast-align -Wimplicit
-Wpointer-arith -Wswitch -ffunction-sections -fdata-sections
-Wredundant-decls -Wreturn-type -Wshadow -Wunused
-Wa,-adhlns=common/Cstartup.lst  -I./common -I./FixedPoint -MD -MP -MF
dep/main2.elf.d common/Cstartup.o common/swi_handler.o interrupt.o
dbgu.o syscalls.o common/Cstartup_SAM7.o flash.o
./FixedPoint/fixed.o main2.o --output main2.elf -nostartfiles
-Wl,-Map=main2.map,--cref,--gc-sections -lstdc++ -lc  -lm -lc -lgcc
-L./common  -T./common/AT91SAM7S256-ROM.ld
./FixedPoint/fixed.o: In function `fixed::sin()':
undefined reference to `__dso_handle'
collect2: ld returned 1 exit status
arm_make: *** [main2.elf] Error 1

thanx for your help.



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.