From: "George Pontis" <GPontis@z9.com>
To: 'Leopold Palomo-Avellaneda' <leo@alaxarxa.net>, xenomai@xenomai.org
Subject: Re: [Xenomai] Qt - Xenomai compatibility problem
Date: Fri, 3 May 2013 09:29:29 -0700 [thread overview]
Message-ID: <036801ce481b$62cd9480$2868bd80$@com> (raw)
In-Reply-To: <201305021037.24643.leo@alaxarxa.net>
> -----Original Message-----
> From: Leopold Palomo-Avellaneda [mailto:leo@alaxarxa.net]
> Sent: Thursday, May 02, 2013 1:37 AM
> To: xenomai@xenomai.org
> Cc: George Pontis
> Subject: Re: [Xenomai] Qt - Xenomai compatibility problem
>
> A Dimarts, 30 d'abril de 2013, George Pontis va escriure:
> > I took a snapshot from git of the current Xenomai code and put it in the
> hands of the software
> > developers. They reported that Qt would not build after patching with
> Xenomai. The problem was that
> > Qt uses "signals" as a keyword, and that conflicts with the function
> prototype for rt_task_notify
> > under xenomai/native:
> >
> >
> > int rt_task_notify(RT_TASK *task, rt_sigset_t signals);
> >
> >
> > Although this is not a Xenomai problem, it might save some users the
> annoyance if the name "signals"
> > could change.
>
> I'm not a C++ expert, but to solve this you must encapsulate all the Xenomai
> calls of your software in a namespace. After that, I think that you could use
> the signal word without problem of collision with another signal word.
>
> Regards,
>
> Leopold
That that won't work because Qt defines the keyword "signals" using #define,
which is handled by the preprocessor. The preprocessor ignores namespaces
so namespaces wouldn't help in this case.
Geo.
next prev parent reply other threads:[~2013-05-03 16:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.293.1366744201.1444.xenomai@xenomai.org>
2013-04-30 20:50 ` [Xenomai] Qt - Xenomai compatibility problem George Pontis
2013-05-02 8:37 ` Leopold Palomo-Avellaneda
2013-05-03 16:29 ` George Pontis [this message]
2013-05-09 12:50 ` Leopold Palomo-Avellaneda
2013-05-03 18:10 ` Gilles Chanteperdrix
2013-05-03 18:14 ` George Pontis
2013-05-03 18:20 ` Gilles Chanteperdrix
2013-05-03 18:30 ` George Pontis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='036801ce481b$62cd9480$2868bd80$@com' \
--to=gpontis@z9.com \
--cc=leo@alaxarxa.net \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.