posix/stdio.h error: ?size_t? does not name a type
Dnia Piątek, 28 Grudnia 2012 16:01 Gilles Chanteperdrix <[email protected]> napisał(a)
Quoted 18 lines · Mariusz Janiak
Quoted 10 lines
Hi
After successful Xenomai 2.6.2 installation (with Gilles help), I have started building OROCOS 2.6 with xeno support, and once again I went into trouble. This time I am not sure that it is a Xenomai related bug. The problem is following
from /worek/install/orocos-toolchain-xeno/rtt/rtt/transports/mqueue/MQLib.hpp:42,
from /worek/install/orocos-toolchain-xeno/rtt/rtt/transports/mqueue/MQLib.cpp:40:
/usr/xenomai/include/xenomai/posix/stdio.h:30:1: error: ?size_t? does not name a type make[2]: *** [rtt/transports/mqueue/CMakeFiles/rtt-transport-mqueue-xenomai_plugin.dir/MQLib.cpp.o] Błąd 1Quoted 5 lines
I have found one thread related to this problem
http://www.xenomai.org/pipermail/xenomai/2012-September/026143.html
Adding #include <
unistd.h> in/usr/xenomai/include/xenomai/posix/stdio.hhave solved my problem, but I don't know if it is a suitable solution.
Quoted 7 lines
Hi Mariusz,
thanks for the report. Could you tell me which distribution and which version you are using? We are certainly not going to include
unistd.hinstdio.h, the fact thatsize_tis not defined indicates that something else is wrong as there are services supposedly defined instdio.hwhich usesize_t.
I have Ubuntu 12.10 x86_64, gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1).
Mariusz