Re: Compilation problem

From: Andrzej Krzysztofowicz (ankry@pg.gda.pl)
Date: Fri Apr 07 2000 - 06:45:23 EST


>
> Hi,
>
> I am unable to compile my code into the kernel as it gives me the
> following undefined references.
>
> undefined reference to `__divdi3'
> undefined reference to `__moddi3'
>
> I guess, this is because, I am doing a division and a mod operation. What
> is is that I need to do in order to compile this?

You probably need to replace 64bit division and a mod operations with
a/ bit shifts, or
b/ casting to 32bit & 32bit division and a mod operations

--
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:18 EST