Weirdo error msg in gcc 3.0.4

Joe Steeve joe_clubs@gmx.net
Wed May 15 19:26:00 GMT 2002


-----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)
{

        int c;
        c = a+b;
}

//------------------------------------------------------------

i used the command line.;

gcc -c test.c

the error message that i got is

test.c:9: conflicting types for `jk'
test.c:1: previous declaration of `jk'

.. 
i dont seem to fine any declaration error for the function jk. i
compiled the same code successfully on gcc 2.8.1.,
what is the problem on version 3.0.4,
kindly help.. thank you.

JoE







"Knowledge is no worth when it is not shared"


-----BEGIN PGP SIGNATURE-----
Version: Encrypted with PGP Plugin for Calypso

iQA/AwUBPOLA0OseVL3Oa/mdEQLZ8gCeKyqzMy0WNmCZEN6Gdmvo0PgyccwAn1WV
bF/9jwaqBs76FXDHs0Pl52Vc
=3Jle
-----END PGP SIGNATURE-----




More information about the Gcc-help mailing list