Problem with calling conventions.
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Fri Dec 31 23:54:00 GMT 1999
> I have a problem. The following line of code gives me an error when
> compiled by a gcc2.95.2 compiler on AiX 4.3.2.
> int __cdecl foo ();
> I cannot even use __stdcall, for that matter.
> Can anyone please tell me how to specify the calling convention while
> declaring a function ?
The proper way to declare it would be
int foo () __attribute__((cdecl));
However, these function attributes are only supported on i386, or on
PPC targeting Windows NT.
Regards,
Martin
More information about the Gcc
mailing list