delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/28/12:08:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <384161E9.BF6C156A@mdlink.de>
Date: Sun, 28 Nov 1999 18:10:01 +0100
From: Helge Hess <helge AT mdlink DOT de>
Organization: MDlink online service center GmbH
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: mlx AT san DOT rr DOT com
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: windows.h breaks ObjC ?
References: <9911281643 DOT AA07798 AT mlx DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019