public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Anthony Chee" <anthony.chee@polyu.edu.hk>
To: <kbuild-devel@vger.kernel.org>, <kernelnewbies@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: undefined reference
Date: Mon, 25 Mar 2002 00:16:04 +0800	[thread overview]
Message-ID: <004501c1d34f$32bda110$0100a8c0@winxp> (raw)

The case is quite complicated.

I am now developing a module. This module need communicate with the kernel.
So I exported a function func(), by using EXPORT_SYMBOL(func). In the header
file, I set "extern int func()".

I also modified the kernel source code, which is inode.c, and insert the
func() and the module header file.

After the above procedure, I use "make bzImage" to build the kernel. At the
compile stage, it does not appear warning message, but it appears in the
linking object stage, which is

fs/fs.o(.text+0x1377d): undefined reference to `func'

How can I solve this issue? Or any parameter for "ld" to avoid checking the
undefined reference?
Thanks.


             reply	other threads:[~2002-03-24 16:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-24 16:16 Anthony Chee [this message]
2002-03-25 21:45 ` undefined reference Bart Trojanowski
2002-03-26  4:17   ` Anthony Chee
2002-03-26  5:49     ` Keith Owens
2002-03-30 14:19       ` Anthony Chee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004501c1d34f$32bda110$0100a8c0@winxp' \
    --to=anthony.chee@polyu.edu.hk \
    --cc=kbuild-devel@vger.kernel.org \
    --cc=kernelnewbies@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox