c++ code compiling

Frank Schafer frank.schafer@setuza.cz
Thu Oct 4 01:12:00 GMT 2001


qiaowen.hua@astec.alcatel.com.cn wrote:

> 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

Hi there,

if I remember right ( from my study of C ), You have to declare the
function as ``extern'' to use it.

Frank


More information about the Gcc-help mailing list