well the only clue I have is that there must be some initialisation code,
which is not executed. Like the static objects have to be initialized too. I
remember from VxWorks, that there was something which called those init code
when you loaded the code. It has to be done only for cpp code. If you make
the initialisation in the init code. What's gonna happen then?
Heinz
> 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.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/