c++ code compiling
qiaowen.hua@astec.alcatel.com.cn
qiaowen.hua@astec.alcatel.com.cn
Thu Oct 4 18:26:00 GMT 2001
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
More information about the Gcc-help
mailing list