>
> > ../../pplib3.c(68) : error C2099: initializer is not a constant
> > What am I missing?
>
> C standard does not allow such initialization. It can be used only in C++
> mode and with some C compilers which enable silently some C++ extensions.
>
> BTW The only one reason why we use C++ mode for OpenWatcom builds is
> missing
> startup initialization in pure C mode. At least I do not know how to reach
> such functionality with this compiler in C.
> In the past I was thinking about disabling startup initialization at all
> but it has to intorduce some incompatibilities to current and Clipper
> behavior so I dropped it. We can return to this idea when we will have
> not other choice in some Harbour ports.


I think we should consider this. This is a crucial part, yet probably
the less portable and the most exotic (non-standard) workaround
we have to use in Harbour.

It's not the first time we stumble into this, last time it was pure C mode
in 64-bit and it took quite a few month until I could find a solution.
It wouldn't surprise me if this couldn't be portable as-is to AI64 for
example. I remember that it was a similar huge job to find out the
C mode initialization trick for 16/32-bit mode. Paul Tucker found it
back then.


> ps. I'll disable HB_MSC_STARTUP for MSVC C++ mode in a while.


Many thanks, I see you've done it already.

Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to