Re: Division involving u64 : undefined reference to __udivdi3

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

 



On Thu, Feb 5, 2009 at 9:58 AM, Sukanto Ghosh
<sukanto.cse.iitb@xxxxxxxxx> wrote:
> Hi,
>
> In a kernel module I need to do an division of an unsigned int by a
> u64 value,

Have a look at the file arch/x86/include/asm/div64.h. That might help

Thanks -
Manish

>but I am getting a linker error: undefined reference to
> __udivdi3.
>
> My system has the following
> OS: Ubuntu 8.04
> GCC version:  4.2.4 (Ubuntu 4.2.4-1ubuntu3)
> Processor: Intel Core 2 Duo
>
>
>
> --
> Regards,
> Sukanto Ghosh
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux