This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Weirdo error msg in gcc 3.0.4
- From: "Joe Steeve" <joe_clubs at gmx dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 16 May 2002 07:54:57 +0530
- Subject: Weirdo error msg in gcc 3.0.4
- Reply-to: joe_steeve at softhome dot net
-----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-----