This is the mail archive of the gcc-help@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: c++ code compiling


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


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