avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] help in the error "undefined reference to `__mulhi3"


From: NEMEC, BENJAMIN
Subject: RE: [avr-gcc-list] help in the error "undefined reference to `__mulhi3"
Date: Fri, 25 May 2007 08:16:42 -0500

Well a little code pasted to the email might help.  But first guess is that you are using a variable called ‘__mulhi3’ that you do not declare anywhere in your code.  You need to add something like:

 

uint8_t __mulhi3;  //for 16 bit variable use uint16_t, for signed variable drop the u from the front.

 

unless __mulhi3 is not a variable…

 

Ben Nemec

 


From: address@hidden [mailto:address@hidden On Behalf Of Leonardo B. Oliveira
Sent: Thursday, May 24, 2007 6:55 PM
To: address@hidden
Subject: [avr-gcc-list] help in the error "undefined reference to `__mulhi3"

 

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]