Hello again...


I have a problem compiling a module using g++. here is a (very stupid)
example:

extern "C"
{
#define NULL 0
#define new _new
#include <rtl.h>
#undef new
}

#include <vector.h>

int init_module (void)
{
  // nothing (just a compiler test!)
}

void cleanup_module (void)
{
  // nothing
}


trying to compile this module brings up no problems, i get a correct .o
file. The problem comes up when trying to insert this module using
insmod. The erorr mesage is:
mod_test.o: couldn't find the kernel version the module was compiled for

what have I done wrong?!


thanks!

tobias

-- [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/rtlinux/

Reply via email to