This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Weirdo error msg in gcc 3.0.4


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]