This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Cygwin v1.0 windows headers and ObjC
- To: cygwin at sourceware dot cygnus dot com
- Subject: Cygwin v1.0 windows headers and ObjC
- From: MarketLogix <mlx at mlx dot com>
- Date: Wed, 8 Dec 99 04:38:27 -0800
- Reply-To: mlx at san dot rr dot com
Hello all,
Found that you can't build ObjC projects with the
stock Cygwin v1.0 CD release out of the box.
And I'm not just talking about the lack of an
libobjc.a, objc headers and cc1objc.exe.
I made these changes to get it to work but I'm
not sure if this won't screw something else up
since I don't generally compile anything other
than ObjC and, of course plain C. Never C++.
Basically 2 header files.
#1
basetyps.h:20
WAS>
#define interface struct
IS>
#ifndef __OBJC__
#define interface struct
#endif
I was informed by another subscriber that this line
actually appears within an #ifdef __cplusplus block
in the M$ development counterpart. That would fix
it too (if not mixing languages, I guess).
#2
windows.h:120
WAS>
#ifdef __OBJC__
/* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
but undefining it causes trouble as well.
*/
#if 0
#undef BOOL
#endif
#endif
IS>
#ifdef __OBJC__
/* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
but undefining it causes trouble as well.
*/
#undef BOOL
#endif
What sort of trouble ? Why ?
Wasn't this problem already solved
in the previous set of windows headers ?
I guess I propose this. I know this is not a
patch but I hope it gains in clarity what it
lacks in efficiency.
Steve B.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com