Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Thu, 27 Jan 2000 22:15:04 -0500 To: Stephen Davies Cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Broken C code Message-ID: <20000127221504.A8019@cygnus.com> Reply-To: cygwin AT sourceware DOT cygnus DOT com Mail-Followup-To: Stephen Davies , cygwin AT sourceware DOT cygnus DOT com References: <200001280253 DOT NAA06143 AT mustang DOT sdc DOT com DOT au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200001280253.NAA06143@mustang.sdc.com.au>; from scldad@sdc.com.au on Fri, Jan 28, 2000 at 01:23:44PM +1030 On Fri, Jan 28, 2000 at 01:23:44PM +1030, Stephen Davies wrote: >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? It sounds like your specs file is screwed up. It should be in something like .../lib/gcc-lib/cygnus-2.7b19/specs but I don't know precisely where it would be located. It should contain a line like this: *predefines: -Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -Asystem(winnt) -Acpu(i386) -Amachine(i386) This is from a much more recent gcc compiler so this may not be exactly right but you can at least see what it should look like. It's possible that you also may have something like a GCC_LIBRARY environment variable which is pointing to the wrong place. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com