From: "Alexandre Devaure" Newsgroups: comp.os.msdos.djgpp References: <8AyN4.3395$fv3 DOT 5373032 AT nnrp6 DOT proxad DOT net> Subject: Re: attribute stdcall Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: <2HyN4.3398$JA3.5430288@nnrp6.proxad.net> Date: Wed, 26 Apr 2000 09:30:38 GMT NNTP-Posting-Host: 194.51.236.59 X-Complaints-To: abuse AT proxad DOT net X-Trace: nnrp6.proxad.net 956741438 194.51.236.59 (Wed, 26 Apr 2000 11:30:38 CEST) NNTP-Posting-Date: Wed, 26 Apr 2000 11:30:38 CEST Organization: Guest of ProXad - France To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Alexandre Devaure a écrit dans le message : 8AyN4.3395$fv3 DOT 5373032 AT nnrp6 DOT proxad DOT net... > Has sombody ever had compilation problem with a function declared with the > attribute stdcall with gcc 2.95? > > static bool F_WriteWords(int *_VP_Addr,int _V_Off,int _V_Lng) > __attribute__((stdcall)); > static bool F_WriteWords(int *_VP_Addr,int _V_Off,int _V_Lng) > { > body > } > > the result is : > bmra.c:120: previous declaration of `F_WriteWords' > bmra.c:165: conflicting types for `F_Init' > > If I remove the attribute, the compilation is ok. > > TIA > Alex > > > I am sorry, the good message is : bmra.c:125: conflicting types for `F_WriteWords' bmra.c:120: previous declaration of `F_WriteWords'