#include <linux/mm.h>
main () {
int a;
memset(&a, sizeof(a), 0);
}
---bash# gcc -o t t.c /tmp/cca019061.o: In function `main': t.c:0: undefined reference to `__constant_c_memset' t.c:0: undefined reference to `__memset' /tmp/cca019061.o(.lita+0x8): undefined reference to `__constant_c_memset' /tmp/cca019061.o(.lita+0x10): undefined reference to `__memset'
Something in the kernel header files (asm/string.h?) is breaking this. Any ideas on how to fix it?
Erik
------------------------------------------------------------------------------- "Eggheads unite! You have nothing to lose but your yolks" - Adlai Stevenson
Erik Troan = http://sunsite.unc.edu/ewt/ = ewt@sunsite.unc.edu