[avr-gcc-list] help in the error "undefined reference to `__mulhi3"
From:
Leonardo B. Oliveira
Subject:
[avr-gcc-list] help in the error "undefined reference to `__mulhi3"
Date:
Fri, 25 May 2007 00:55:25 +0100
Hi all,
I trying to compile C code using an external library. However, it outputs the following. I'm using avr-gcc 3.3. Any clue?
main.o(.text+0x12): undefined reference to `__mulhi3' main.o(.text+0x32): undefined reference to `__mulqi3'
./libmir.a(main.o): In function `muldvm': main.o(.text+0x6e): undefined reference to `__mulqi3' ./libmir.a(main.o): In function `muldvd': main.o(.text+0x92): undefined reference to `__mulhi3'
./libmir.a(main.o): In function `muldvd2': main.o(.text+0xb2): undefined reference to `__mulhi3' ./libmir.a(main.o): In function `mr_setbase': main.o(.text+0x494): undefined reference to `__mulqi3'
./libmir.a(main.o): In function `mirvar_mem_variable': main.o(.text+0x612): undefined reference to `__mulhi3' ./libmir.a(main.o): In function `init_big_from_rom': main.o(.text+0x6f8): undefined reference to `pgm_read_byte_near'
./libmir.a(main.o): In function `memkill': main.o(.text+0xc6e): undefined reference to `__mulhi3' ./libmir.a(main.o): In function `isqrt': main.o(.text+0x1262): undefined reference to `__mulhi3'
./libmir.a(main.o): In function `recode': main.o(.text+0x135a): undefined reference to `__mulhi3' ./libmir.a(main.o): In function `epoint_init_mem_variable': main.o(.text+0x18b8): undefined reference to `__mulhi3'
main.o(.text+0x18d0): undefined reference to `__mulhi3' make: *** [exe0] Error 1
Any help will be much appreciated.
Thx in advance
Leo
-- Cheers,
Leonardo
Alice:..wondering u could help me find my way Cat:It depends on where u want to get to Alice: It really doesn't matter, as long as... Cat: So it really doesn't matter which way u go