public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Broken C code
@ 2000-01-27 18:54 Stephen Davies
  2000-01-27 19:15 ` Chris Faylor
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Stephen Davies @ 2000-01-27 18:54 UTC (permalink / raw)
  To: cygwin

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@sdc.com.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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Broken C code
@ 2000-01-27 22:58 Earnie Boyd
  2000-01-27 23:37 ` Stephen Davies
  0 siblings, 1 reply; 11+ messages in thread
From: Earnie Boyd @ 2000-01-27 22:58 UTC (permalink / raw)
  To: Stephen Davies, cygwin

It wouldn't be the \r\n line endings would it?

--- Stephen Davies <scldad@sdc.com.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@sdc.com.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@sourceware.cygnus.com
> 
> 

=====
Earnie Boyd < mailto:earnie_boyd@yahoo.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

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Broken C code
@ 2000-01-28  5:40 N8TM
  0 siblings, 0 replies; 11+ messages in thread
From: N8TM @ 2000-01-28  5:40 UTC (permalink / raw)
  To: scldad, earnie_boyd; +Cc: cygwin

In a message dated 1/27/2000 11:39:05 PM Pacific Standard Time, 
scldad@sdc.com.au writes:

> gcc (and several 
>  other tools) seem to handle \n and \r\n as identical.

makeinfo (cwilson revision) chokes on the mixture of \n and \r\n in the 
gcc-2.96 snapshots.  gcc-2.95.2 .texi files are clean, no \r.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2000-01-29 11:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-27 18:54 Broken C code Stephen Davies
2000-01-27 19:15 ` Chris Faylor
2000-01-27 21:22   ` Stephen Davies
2000-01-27 22:19   ` Stephen Davies
2000-01-28 13:58     ` Chris Faylor
2000-01-29 11:44     ` Mumit Khan
2000-01-27 20:20 ` Terry Lincoln
2000-01-29 11:34 ` Mumit Khan
2000-01-27 22:58 Earnie Boyd
2000-01-27 23:37 ` Stephen Davies
2000-01-28  5:40 N8TM

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).