delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/28/02:32:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
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: <200001280736.SAA06608@mustang.sdc.com.au>
X-Mailer: exmh version 2.0.3 3/23/99
To: earnie_boyd AT yahoo DOT com
cc: Stephen Davies <scldad AT sdc DOT com DOT au>, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Broken C code
In-Reply-To: Message from Earnie Boyd <earnie_boyd@yahoo.com>
of "Thu, 27 Jan 2000 22:58:17 -0800." <20000128065817 DOT 2986 DOT qmail AT web121 DOT yahoomail DOT com>
Mime-Version: 1.0
Date: Fri, 28 Jan 2000 18:06:55 +1030
From: Stephen Davies <scldad AT sdc DOT com DOT au>

G'day Earnie and thanks for your reply.

A couple of people have made this suggestion but it is not relevant.

I do not know whether it is intentional or accidental but gcc (and several 
other tools) seem to handle \n and \r\n as identical. (Even WordPad can do it.)

My problem was that (for reasons as yet unknown) my gcc specs file did not 
include a definition for __declspec.

Cheers,
Stephen.

Earnie Boyd <earnie_boyd AT yahoo DOT com>  wrote:
> It wouldn't be the \r\n line endings would it?
> 
> --- Stephen Davies <scldad AT sdc DOT com DOT au> wrote:
> > Hello.
> > 
> > I have managed to break my ability to compile a number of C programs with gcc
> > 
> > 2.7B19 under cygwin B19.1.
> > 
> > In September 1999, all of these programs compiled successfully on the same 
> > machine with the same cygwin environment.
> > 
> > Now, all of the programs involved fail to compile with the same error
> > messages 
> > and I haven't a clue as to why.
> > 
> > In all cases, the following code is included from a vendor-specific set of 
> > headers:
> > 
> > typedef  IDI_ULONG  (__attribute__((__stdcall__))  *  OPI_DELETE_CALLBACK ) 
> > (OPI_CONID, OPI_FILEID);^M
> > __declspec(dllexport)   IDI_USHORT  __attribute__((__stdcall__))  
> > OpiMakeConnection( OPI_PCONID pConID );^M
> > 
> > (This is just two of many similar lines)
> > 
> > This produces the following compiler message:
> > 
> > ../include/opiob.h: In function '__declspec':
> > In file included from ../include/opi.h:283,
> >                        from cic.h:1,
> >                        from getpk.c:1
> > ../include/opiob.h:141 parse error before '__declspec'
> > ../include/opiob.h:140 declaration for parameter 'OpiMakeConnection' but no 
> > such parameter
> > 
> > followed by a whole bundle of similar errors.
> > 
> > Can anyone please explain to me what I have done/not done to cause this 
> > misinterpretation of the __declspec(dllexport) syntax?
> > 
> > Cheers and thanks,
> > Stephen Davies
> > 
> > 
> > -- 
> > ========================================================================
> > Stephen Davies Consulting	    		      scldad AT sdc DOT com DOT au
> > Adelaide, South Australia.     		          Voice: 08-8177 1595
> > Computing & Network solutions.	 	      Fax: 08-8177 0133
> > 
> > 
> > 
> > --
> > Want to unsubscribe from this list?
> > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
> > 
> > 
> 
> =====
> Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com>
> Cygwin Newbies, please visit
> <http://www.freeyellow.com/members5/gw32/index.html>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com



-- 
========================================================================
Stephen Davies Consulting	    		      scldad AT sdc DOT com DOT au
Adelaide, South Australia.     		          Voice: 08-8177 1595
Computing & Network solutions.	 	      Fax: 08-8177 0133



--
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