This is the mail archive of the gcc@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]

Re: iostream.h compile error



On Tue, 14 Nov 2000, Liu WS wrote:

> when i use gcc compile a file that include __cdecl function
> error occured.
> the test file "testcdecl.cpp" is
> void __cdecl haha(){}
> int main(void)
> {
> return 1;
> }
> the errors are:
> testcdecl.cpp:1: syntax error before '(' token

__cdecl is not part of ISO C++.  Define it to empty like

#define __cdecl

when compiling with GCC.

--Kriang


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