This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Weirdo error msg in gcc 3.0.4
- From: Andris Pavenis <pavenis at latnet dot lv>
- To: joe_steeve at softhome dot net, gcc-help at gcc dot gnu dot org
- Date: Thu, 16 May 2002 09:21:42 +0300
- Subject: Re: Weirdo error msg in gcc 3.0.4
- References: <200205160754570370.00416279@mail.gmx.net>
On Thursday 16 May 2002 05:24, Joe Steeve wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
> i use gcc 3.0.4 for DJGPP (Dos).
> the following piece of code which compiled perfectly on gcc 2.8.1
> dosent compile on this new version.
>
> //----------------------------------------------------------
> void jk(int a,int b) __attribute__ ((stdcall));
>
> int main()
> {
> jk(10,11);
>
> }
> void jk(int a,int b)
Try 'void __attribute__ ((stdcall)) jk(int a,int b)' here. At least it
compiles for me with gcc-3.0.4 Linux-to-DJGPP cross-compiler
> {
>
> int c;
> c = a+b;
> }
>
Andris