On Tue, 2002-10-01 at 20:07, immortal1015 wrote:
> 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'
you are using glibc headers to compile kernel code....
add -I/lib/modules/`uname -r`/build/include
to the gcc flags
--=-64vENYkFMJ1CD/sXLycd
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA9mefMxULwo51rQBIRAnhEAKCQa4P2uFvF03Y1asOvqAhih68f9gCgnvvh
OVHxSL+WQ7BzhNcXp9Rn+xY=
=cav0
-----END PGP SIGNATURE-----
--=-64vENYkFMJ1CD/sXLycd--
-
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/