delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/26/04:46:16

From: "Alexandre Devaure" <Alexandre DOT Devaure AT leroy-autom DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: attribute stdcall
Lines: 20
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: <8AyN4.3395$fv3.5373032@nnrp6.proxad.net>
Date: Wed, 26 Apr 2000 09:23:16 GMT
NNTP-Posting-Host: 194.51.236.59
X-Complaints-To: abuse AT proxad DOT net
X-Trace: nnrp6.proxad.net 956740996 194.51.236.59 (Wed, 26 Apr 2000 11:23:16 CEST)
NNTP-Posting-Date: Wed, 26 Apr 2000 11:23:16 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

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


- Raw text -


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