From: "gio zanei" <il_boba@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: undefined reference to printk()
Date: Tue, 23 Apr 2002 15:34:51 +0200 [thread overview]
Message-ID: <F236cWcHoWRwE67G7lU00005dc6@hotmail.com> (raw)
hi to all,
i need to compile a small program that i made. WHen i try to do it, it
compiles all right with the -c option ( that is i get the .o file), but if i
do even the linking it just keep giving me the undefined reference error to
some kernel functions that i need to use. In particular are the printk,
filp_open, generic_file_read.... I have included the header files that
declare them ( kernel.h and fs.h) and i have compiled the program with the
-D__KERNEL__ and other option used by the compiler when it wants to compile
a module in the kernel. I tried in many different ways but the error in the
linking is always the same.
thank you,
boba
_________________________________________________________________
MSN Foto è il modo più semplice per condividere e stampare le tue foto:
http://photos.msn.com/support/worldwide.aspx
next reply other threads:[~2002-04-23 13:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-23 13:34 gio zanei [this message]
2002-04-23 13:56 ` Richard B. Johnson
2016-06-05 0:43 undefined reference to `printk' kbuild test robot
2016-06-12 2:17 kbuild test robot
2016-06-12 4:38 ` Josh Triplett
2016-06-27 5:26 ` Yoshinori Sato
2016-06-26 1:19 kbuild test robot
2016-06-27 5:14 ` Yoshinori Sato
2016-07-03 15:39 kbuild test robot
2016-07-19 9:10 kbuild test robot
2016-07-27 20:56 kbuild test robot
2016-08-07 7:17 kbuild test robot
2016-08-16 1:20 kbuild test robot
2016-08-28 16:56 kbuild test robot
2016-09-05 8:04 kbuild test robot
2016-09-10 17:10 kbuild test robot
2016-09-25 3:40 kbuild test robot
2016-09-25 3:46 ` Joe Perches
2016-09-26 1:54 ` Fengguang Wu
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=F236cWcHoWRwE67G7lU00005dc6@hotmail.com \
--to=il_boba@hotmail.com \
--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
all inboxes | Powered by JetHome®