compile "printk"

Moritz Julen moju@hotmail.com
Tue Dec 21 05:08:00 GMT 1999


I'd like to use printk for debbuging. But I can't compile my program.

#include<linux/kernel.h>
#include<stdio.h>

int main()
{
  printk(KERN_DEBUG "HelloWorld\n");
  return(0);
}

When I compile it, then I get KERN_DEBUG not defined or undefined
refernce to printk without KERN_DEBUG.

What's wrong???

Thanks

Mo


More information about the Gcc-help mailing list