[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Jan Albiez <albiez@fzi.de>] (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Jan Albiez <albiez@fzi.de>] (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Mon, 28 May 2001 20:46:23 +0200 (CEST)
>From owner-rtl Mon May 28 01:27:30 2001
Received: from relay.xlink.net (relay.xlink.net [193.141.40.4])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f4S7RTs18205
for <rtl@rtlinux.org>; Mon, 28 May 2001 01:27:29 -0600
Received: from gate.fzi.de (gate.fzi.de [141.21.4.3])
by relay.xlink.net (8.9.3/8.8.7) with ESMTP id JAA11109
for <rtl@rtlinux.org>; Mon, 28 May 2001 09:22:20 +0200 (MET DST)
Received: from alfa.fzi.de by gate.fzi.de (PP) with ESMTP;
Mon, 28 May 2001 09:22:17 +0200
Received: from audi.fzi.de (actually audi) by alfa (PP) with SMTP;
Mon, 28 May 2001 09:21:59 +0200
Received: from albiez by audi.fzi.de with local (Exim 3.12 #1 (Debian))
id 154HM0-0006qL-00 for <rtl@rtlinux.org>;
Mon, 28 May 2001 09:22:16 +0200
Date: Mon, 28 May 2001 09:22:16 +0200
To: RT Linux Mailinglist <rtl@rtlinux.org>
Subject: Re: [rtl] RTLinux: C++ static members != good ?
Message-ID: <20010528092215.A26297@audi.fzi.de>
References: <F26QABZTW5k1Ed28kIN00002f30@hotmail.com> <024501c0e51a$16678f90$f000000a@domain>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <024501c0e51a$16678f90$f000000a@domain>; from Heinz.Haeberle@gmx.net on Fri, May 25, 2001 at 08:56:15AM -0400
From: Jan Albiez <albiez@fzi.de>
On Fri, May 25, 2001 at 08:56:15AM -0400, Heinz Haeberle wrote:
> What you have to add this to _one_ of the .cpp files:
> int A::a;
> or
> int A::a=0;
> if you want to initialize it
This is exactly one of the thing which just don't work at our place. I mean
the compiler doesn't cry or something, but the value is just not there. The
definition/declaration is a bit more complex, but you just reach nothing
over the pointer:
in .h file:
typdef tDescription char*;
class tTest {
static const tDescription[] desc;
}
in .C file:
tDecription tTest::desc[] = { "one", two" };
in Linux space this works quite well.
blue skies
Jan
--
-- Jan Christian Albiez --
-- FZI -- Haid-und-Neu-Str. 10-14 -- 76131 Karlsruhe -- +49 721 9654 206 --
-- segmentation violation in module reality.o ...
... please shutdown your universe and reboot --