This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: windows.h breaks ObjC ?
- To: mlx at san dot rr dot com
- Subject: Re: windows.h breaks ObjC ?
- From: Helge Hess <helge at mdlink dot de>
- Date: Sun, 28 Nov 1999 18:10:01 +0100
- CC: cygwin at sourceware dot cygnus dot com
- Organization: MDlink online service center GmbH
- References: <9911281643.AA07798@mlx.com>
MarketLogix wrote:
>
> now try to compile it to object via:
>
> gcc -c -x objective-c test.c -o test.o
>
> I get the foillowing:
>
> Object.h:37: invalid identifier `@struct'
> Object.h:37: parse error before `Object'
> Object.h:38: syntax error before `{'
> Object.h:43: method definition not in class context
I don't remember exactly, but I think windows.h has something like this:
#define interface struct
and the easy fix is to
#include <windows.h>
#undef interface
#include <objc/objc.h>
although this might affect windows sources somehow (don't know what
interface is good for).
Greetings
Helge
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com