Since your module is in kernel space, you can't use C library functions such as printf(), as those are user space functions. There is a good explanation in Alessandro Rubini's book "Linux Device Drivers" and for your convenience I am including the URL here:
http://www.xml.com/ldd/chapter/book/ch02.html Brian On Wednesday 27 February 2002 08:19 am, you wrote: > Hi, > > I am trying to include <stdio.h> in my C++ code with > the following: > > #include "c_headers_begin.h" > #include <stdio.h> > #include "c_headers_end.h" > > Although I can compile my code using the g++ copiler, > but when I install the module I get > > errors: "Unresolved symbol printf" > > I guess I need to link the object file of stdio with > the object file of my module using > > the "ld" command command in my makefile. Is that > right? Where can I find the object file > > for stdio.h??? > > Thanx, > Anjali > > __________________________________________________ > Do You Yahoo!? > Yahoo! Greetings - Send FREE e-cards for every occasion! > http://greetings.yahoo.com > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] > -- > For more information on Real-Time Linux see: > http://www.rtlinux.org/ -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/