>What is the way to change the default alignment
>properties of the data in your C++ program, when
>using SunWorks SC4.2 compiler? Can I do this on a
>per file basis, rather that for each class/struct?
exchange data, you're barking up the wrong tree.
Checkout XDR instead and find that tehre's much more than
aligment to data exchange.
And when it comes to C++ classes, forget about exchanging
those between unlike systems, the compilers will wildly disagree
about how classes are laid out.
There's a pragma pack, but after that your code wil run slowly.Quote:>I mean something of the sort of the __attribute__()
>compiler specific instruction for ther GNU C++ compiler,
>or #pragma pack(), for the Microsoft C++ compiler.
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.