Got it...

The solution to the problem seems to be like this:
    - take all the tips written earlier in this list (see attached example
from Richard Prescott, slightly modified)
    - TAKE OUT THE -O2 OPTION FROM THE rtl.mk FILE!!!!!

thats it?! (ok, more problems coming up i think...)

thanks for all the tips!

tobias



Tobias Klotz schrieb:

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

X bitmap

Reply via email to