Re: Getting undefined reference , how to link during module building ?

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

 



On Mon, Jun 28, 2010 at 13:14, Ramesh Rajagopal <shmera@xxxxxxxxx> wrote:
> Hi Guys,
>    I am trying to do the following but I am getting undefined reference
> error ?
>
> I have two modules lets say Module A & Module B. Module B defines a function
> called
> module_b_func() which got exported also. Then I compile module B and
> inserted into kernel using insmod.
>
> Then in module A I tried to call module B's function module_b_func(), When I
> tried to compile
> I am getting undefined reference to module_b_func(). How to link moduleB's
> function here.

uhm, declare module_b_func() as extern in module A?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
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