mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matti Aarnio <matti.aarnio@zmailer.org>
To: Stanciu Adrian <adi@Aniela.EU.ORG>
Cc: linux-kernel@vger.kernel.org
Subject: Re: problem compiling some code
Date: Sun, 29 Jul 2001 23:51:37 +0300	[thread overview]
Message-ID: <20010729235137.C2650@mea-ext.zmailer.org> (raw)
In-Reply-To: <Pine.LNX.4.33.0107292254270.757-100000@ns1.Aniela.EU.ORG>
In-Reply-To: <Pine.LNX.4.33.0107292254270.757-100000@ns1.Aniela.EU.ORG>; from adi@Aniela.EU.ORG on Sun, Jul 29, 2001 at 10:56:54PM +0300

On Sun, Jul 29, 2001 at 10:56:54PM +0300, Stanciu Adrian wrote:
> PROBLEM: #include errors

  This should be FAQ...

> Hello,
> 
> I'm trying to compile the following code:
> 
> // test.c begins here
>     #include <linux/modversions.h>
>     #include <linux/module.h>
>     #include <linux/version.h>
>     #include <linux/kernel.h>
>     #include <linux/pci.h>
>     #include <linux/delay.h>
>     #include <asm/uaccess.h>
> 
>     void main(void)
>     {
>         // no further code needed
>     }
> // end of test.c
> 
> But I get the following errors and warning messages:
....
> The program is compiled using: gcc -Wall test.c

  If you are compiling kernel modules (I presume you are),
  observing that kernel compiles everything with -D:s of:
	-D__KERNEL__
	-DMODULE
  depending of few things, usually also with:
	-DMODVERSIONS

  should give you a clue...

> 10x

/Matti Aarnio

      reply	other threads:[~2001-07-29 20:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-29 19:56 Stanciu Adrian
2001-07-29 20:51 ` Matti Aarnio [this message]

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=20010729235137.C2650@mea-ext.zmailer.org \
    --to=matti.aarnio@zmailer.org \
    --cc=adi@Aniela.EU.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

all inboxes | Powered by JetHome®