* iostream.h compile error
@ 2000-11-13 17:55 Liu WS
2000-11-13 18:48 ` Kriang Lerdsuwanakij
0 siblings, 1 reply; 2+ messages in thread
From: Liu WS @ 2000-11-13 17:55 UTC (permalink / raw)
To: gcc
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
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .
Share information about yourself, create your own public profile at
http://profiles.msn.com .
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: iostream.h compile error
2000-11-13 17:55 iostream.h compile error Liu WS
@ 2000-11-13 18:48 ` Kriang Lerdsuwanakij
0 siblings, 0 replies; 2+ messages in thread
From: Kriang Lerdsuwanakij @ 2000-11-13 18:48 UTC (permalink / raw)
To: Liu WS; +Cc: gcc
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-13 18:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-13 17:55 iostream.h compile error Liu WS
2000-11-13 18:48 ` Kriang Lerdsuwanakij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).