This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: c++ code compiling
- TO: eljay at adobe dot com, frank dot schafer at setuza dot cz
- Subject: RE: c++ code compiling
- From: qiaowen dot hua at astec dot alcatel dot com dot cn
- Date: Fri, 5 Oct 2001 09:21:48 +0800
- CC: gcc-help at gcc dot gnu dot org
Dear Eljay and Frank,
In fact, i don't wanna give out a clear declaration of the function
be called. I know if i code it with "C", this error is just a
warning and i can successfully link the programm as long as i provide
the obj file with this function's implementation when
linking. So, do you know if g++ compiler has some compilation options
can be used to bypass this "error"?
Best regards,
Hua Qiaowen
-----Original Message-----
From: eljay [SMTP:eljay@adobe.com]
Sent: Thursday, October 04, 2001 8:21 PM
To: Qiaowen Hua
Subject: Re: c++ code compiling
Hi Hua,
Have you tried giving an explicit declaration (prototype)?
Example:
extern int foo(int i);
Sincerely,
--Eljay