Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 1 Oct 2002 14:03:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 1 Oct 2002 14:01:14 -0400 Received: from babyruth.hotpop.com ([204.57.55.14]:49072 "EHLO babyruth.hotpop.com") by vger.kernel.org with ESMTP id ; Tue, 1 Oct 2002 13:59:52 -0400 From: "immortal1015" To: "linux-kernel@vger.kernel.org" Subject: compiling errors X-mailer: Foxmail 4.2 [cn] Date: Wed, 2 Oct 2002 2:7:1 +0800 Message-Id: <20021001180459.E4AD92F8147@smtp-1.hotpop.com> X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 44 I tried to compile the very simple kernel module code as following. I compile this code using gcc -c hello.c, but gcc tell me: /usr/include/linux /module.h:60 parse error before 'atomic_t' What is the error? My gcc version is 2.96. ////////////////////////////////////////////////////////////////////////////// #ifndef __KERNEL__ # define __KERNEL__ #endif #ifndef MODULE # define MODULE #endif #include #include #include #include /* printk */ int init_module(void) { printk("<1>Hello the world\n"); return 0; } void cleanup_module(void) { printk("<1>Goodbye the world\n"); } ///////////////////////////////////////////////////////////////// Best regards yours Brucie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/