Hello all:
I'm trying to compile a realtime C++ module but it fails at the very first
line, which is nothing but:
#include <rtl_cpp.h>
The way it's getting compiled is:
g++ -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.4rtl/include/linux/modversions.h -g -D__RTL__
-D_LOOSE_KERNEL_NAMES -I/usr/src/linux/include -I/usr/src/rtlinux-3.1/include
-I/usr/src/rtlinux-3.1/include/compat -I/usr/src/rtlinux-3.1/include/posix
-fno-exceptions -fno-rtti -c -o rtmodule.o rtmodule.cpp
With the following result:
In file included from /usr/src/linux/include/asm/system.h:305,
from /usr/src/linux/include/asm/apic.h:6,
from /usr/src/linux/include/asm/smp.h:22,
from /usr/src/linux/include/linux/smp.h:14,
from /usr/src/rtlinux-3.1/include/rtl_core.h:21,
from /usr/src/rtlinux-3.1/include/rtl_sched.h:24,
from /usr/src/rtlinux-3.1/include/rtl_cpp.h:20,
from rtmodule.cpp:1:
/usr/src/linux/include/asm/rtlinux_cli.h:24:13: warning: extra tokens at end
of #undef directive
/usr/src/linux/include/asm/rtlinux_cli.h:25:13: warning: extra tokens at end
of #undef directive
/usr/src/linux/include/asm/rtlinux_cli.h:26:20: warning: extra tokens at end
of #undef directive
/usr/src/linux/include/asm/rtlinux_cli.h:27:23: warning: extra tokens at end
of #undef directive
/usr/src/linux/include/asm/rtlinux_cli.h:28:22: warning: extra tokens at end
of #undef directive
/usr/src/linux/include/asm/rtlinux_cli.h:29:25: warning: extra tokens at end
of #undef directive
/usr/src/linux/include/asm/rtlinux_cli.h:30:25: warning: extra tokens at end
of #undef directive
/usr/src/linux/include/asm/rtlinux_cli.h:31:24: warning: extra tokens at end
of #undef directive
/usr/src/linux/include/asm/rtlinux_cli.h:41:17: warning: extra tokens at end
of #undef directive
...
I'm using RTLinux 3.1 with kernel 2.4.4. I'm doing the same thing in another
computer with no problem. As far as I can see, the only diference is that
this one has Comedi installed and therefore I had to do "make install" in
RTLinux source tree (otherwise Comedi won't install). Does anybody know what
can be wrong?.
Thank you in advance,
Ivan Martinez
-- [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/