lkml.org 
[lkml]   [2000]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: hello world module no longer compiles?!
Date
On Mon, 16 Oct 2000 15:29:53 +0100 (BST), 
Tigran Aivazian <tigran@veritas.com> wrote:
>static void __exit test_exit(void)
>{
> return;
>}
>
>module_init(test_init);
>module_exit(test_exit);
># kgcc -Wall -O2 -g -c -o hello.o hello.c
>hello.c:13: parse error before `test_exit'

Add -v -E -dM to kgcc to see where it is reading its headers from and
to see what the macros are defined to. __exit should be defined to a
noop in a module.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.047 / U:1.956 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site