Mail Archives: djgpp/1997/07/02/11:32:37
Hi,
In trying to use RSXNTDJ 1.3.1/DJGPP 2.01/MS Platform SDK to create
Win32 programs, I've encountered the following problem:
Quite a few of the Platform SDK include files are written to take
advantage of the VC++ anonymous union feature (which compiles the code
"struct x { union { int y;};} z; z.y = 10;"). Although the header files
are written in a way so that one can write portable code (look at
prsht.h), almost all the sample code available (e.g., from the MSDN) are
written for the VC++ compiler only.
I was able to compile some elaborate programs from the Windows 95 User
Interface book, including one that uses the treeview control. However I
have to modify others, just to get a clean compile under gcc.
My question is: does GCC support anonymous unions? How do I turn it on?
By the way, RSXNTDJ 1.3.1 looks very good. Thanks to the DJGPP/RSXNTDJ
community!
--
Weiqi Gao
weiqigao AT a DOT crl DOT com
- Raw text -