From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 29 Jul 2001 16:51:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 29 Jul 2001 16:51:35 -0400 Received: from mail.zmailer.org ([194.252.70.162]:58640 "EHLO zmailer.org") by vger.kernel.org with ESMTP id ; Sun, 29 Jul 2001 16:51:31 -0400 Date: Sun, 29 Jul 2001 23:51:37 +0300 From: Matti Aarnio To: Stanciu Adrian Cc: linux-kernel@vger.kernel.org Subject: Re: problem compiling some code Message-ID: <20010729235137.C2650@mea-ext.zmailer.org> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from adi@Aniela.EU.ORG on Sun, Jul 29, 2001 at 10:56:54PM +0300 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Original-Recipient: rfc822;linux-kernel-outgoing 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 > #include > #include > #include > #include > #include > #include > > 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