Hi all,
I found what was causing the problem (compiling with g++), it's simply that
the struct initialization is not g++ compatible :
__attribute__((weak)) struct __xn_tscinfo __xn_tscinfo = {
.type = -1
};
should be :
__attribute__((weak)) struct __xn_tscinfo __xn_tscinfo = {
type : -1
};
I tested this with g++ and gcc versions 4.1.2 and it compiles correctly.
Patrick
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De
la part de Patrick
Envoyé : jeudi, 1. novembre 2007 13:33
À : [EMAIL PROTECTED]
Cc : [email protected]
Objet : Re: [Xenomai-help] RT, nonRT communication
Ok. I use Xenomai 2.4-rc4 with adeos 1.7-06 for arm with 2.6.20 kernel.
And the compiler output:
/usr/local/qtopiarm/bin/qmake -unix -o Makefile gui.pro
arm-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -D_GNU_SOURCE
-D_REENTRANT -D__XENO__ -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/local/qtopiarm/mkspecs/qws/linux-arm-g++
-I. -I/usr/local/qtopiarm/include/QtCore
-I/usr/local/qtopiarm/include/QtCore -I/usr/local/qtopiarm/include/QtNetwork
-I/usr/local/qtopiarm/include/QtNetwork -I/usr/local/qtopiarm/include/QtGui
-I/usr/local/qtopiarm/include/QtGui -I/usr/local/qtopiarm/include -I.
-I/usr/xenomai/include -I/usr/xenomai/include/posix -Iprotlib -I. -I. -o
main.o main.cpp
/usr/xenomai/include/asm/xenomai/syscall.h:235: error: expected
primary-expression before . token
make: *** [main.o] Erreur 1
Thanks
Patrick
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : jeudi, 1. novembre 2007 12:23
À : Patrick
Cc : 'Gilles Chanteperdrix'; [email protected]
Objet : Re: [Xenomai-help] RT, nonRT communication
Patrick wrote:
> I have tried to compile my QT application with --posix-cflags and
> --posix-ldflags but without success. I have a compilation error in
syscall.h
> :
>
> /usr/xenomai/include/asm/xenomai/syscall.h:235: error: expected
> primary-expression before . Token
>
> I think it's because QT is C++ application so it uses g++ and not gcc. And
> Xenomai is not intended to be compiled with C++ compiler.
It _is_ intended and _is_ being used with C++. This doesn't exclude
regressions or arch-specific bugs in the headers though. What version,
what arch are you using? Can you post the full (related) compiler output?
Jan
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help