This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: iostream.h compile error
- To: Liu WS <louispp at hotmail dot com>
- Subject: Re: iostream.h compile error
- From: Kriang Lerdsuwanakij <lerdsuwa at scf dot usc dot edu>
- Date: Mon, 13 Nov 2000 18:47:57 -0800 (PST)
- cc: gcc at gcc dot gnu dot org
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