From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Patrick <kpa_info@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RT, nonRT communication
Date: Thu, 1 Nov 2007 17:02:12 +0100 [thread overview]
Message-ID: <18217.63620.673826.481658@domain.hid> (raw)
In-Reply-To: <200711011546.lA1FkDVY014154@domain.hid>
Patrick wrote:
> 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.
...but is fragile, if we are not trying to initialize the structure
first member, g++ says:
sorry, unimplemented: non-trivial designated initializers not supported
So, we are better off do it the C++ way.
--
Gilles Chanteperdrix.
next prev parent reply other threads:[~2007-11-01 16:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 12:03 [Xenomai-help] RT, nonRT communication Patrick
2007-10-30 13:29 ` Gilles Chanteperdrix
2007-10-31 7:37 ` ROSSIER Daniel
2007-10-31 8:43 ` Gilles Chanteperdrix
2007-11-01 10:04 ` Patrick
2007-11-01 11:14 ` Patrick
2007-11-01 11:23 ` Jan Kiszka
2007-11-01 12:33 ` Patrick
2007-11-01 15:46 ` Patrick
2007-11-01 16:02 ` Gilles Chanteperdrix [this message]
2007-11-12 14:00 ` Patrick
2007-11-12 15:48 ` Gilles Chanteperdrix
2007-11-12 21:20 ` Jan Kiszka
2007-11-01 15:46 ` Gilles Chanteperdrix
2007-11-10 11:25 ` Patrick
2007-11-10 12:24 ` Gilles Chanteperdrix
2007-10-31 9:39 ` Daniel Schnell
-- strict thread matches above, loose matches on Subject: below --
2007-11-13 7:37 Patrick
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=18217.63620.673826.481658@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=kpa_info@domain.hid \
--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.