[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling a module using G++
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