public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: c++ code compiling
@ 2001-10-04 18:26 qiaowen.hua
  2001-10-05  0:53 ` Rupert Wood
  0 siblings, 1 reply; 5+ messages in thread
From: qiaowen.hua @ 2001-10-04 18:26 UTC (permalink / raw)
  To: eljay, frank.schafer; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* c++ code compiling
@ 2001-10-04  0:54 qiaowen.hua
  2001-10-04  1:12 ` Frank Schafer
  0 siblings, 1 reply; 5+ messages in thread
From: qiaowen.hua @ 2001-10-04  0:54 UTC (permalink / raw)
  To: gcc-help

Dear all,
    If in c++ code, i call function which is implicit declared, the 
compiling will stop with error "implicit declaration of function 
`function name`", how to suppress this error? I only desire to pass it 
in linking phase.

Best regards,
Hua Qiaowen

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-10-05  3:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-04 18:26 c++ code compiling qiaowen.hua
2001-10-05  0:53 ` Rupert Wood
2001-10-05  3:20   ` Frank Schafer
  -- strict thread matches above, loose matches on Subject: below --
2001-10-04  0:54 qiaowen.hua
2001-10-04  1:12 ` Frank Schafer

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).