Why -lm ?? try gcc -D__KERNEL__ -DMODULE -Wall -O3 -c -I/usr/src/linux/include dummy.c -o dummy.o Patrick Mehta, Phoram Kirtikumar (UMKC-Student) wrote: > hello Sir, > I want to modify dummy.c and reuse it. can anybody guide me, how to > recompile dummy.c and include it again using insmod i.e make dummy.o > with my modifications. > when i try to recompile it using > gcc -o dummy -lm dummy.c , it gives me hundreds of errors. > any help will be greatly appreciated. i even tried to copy it in my home > dir but again teh same result. > > plz help. > > phoram mehta > > - > : send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html