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

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

Re: [avr-gcc-list] undefined reference to `__divmodqi4'


From: Guglielmo D.
Subject: Re: [avr-gcc-list] undefined reference to `__divmodqi4'
Date: Tue, 7 Jan 2003 07:39:08 -0500 (EST)

 --- Joerg Wunsch <address@hidden> a écrit : > "Guglielmo D." <address@hidden> 
wrote:
> 
> > I get this error message with the folowing
> example:
> 
> > t.o: In function `main':
> > t.o(.text+0x3a): undefined reference to
> `__divmodqi4'
> 
> Which compiler and library version?  Which compiler
> options are used?
> 
> I cannot reproduce it here (compiler
> gcc-3.3-2002.10.02, recent
> library version, various -mmcu and -O options
> tested).

I'm using gcc-3.2.1, avr-libc-20020203 and binutils-2.12 under linux.
I also tried gcc-3.0.1, gcc-3.0.3 and binutils 2.11.
------------------------
I compile like this:

$ avr-gcc -c test.c
$ avr-ld test.o -o testing -mavr23xx

test.o: In function `main':
test.o(.text+0x3a):undefined reference to `__divmodqi4'

but, if I replace the line a = a / 10; by a = a * 10; like here :

int main()
{
  int a = 100;
  a = a * 100;  // instead of a = a / 10;

  test(a);
}

I can compile successfully...

thanks.



__________________________________________________________
Lèche-vitrine ou lèche-écran ?
magasinage.yahoo.ca
avr-gcc-list at http://avr1.org



reply via email to

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