Linux错误提示

    当程序缺乏某个头文件时,程序依然可以运行,但会在编译阶段弹出警告信息:

    警告信息如下:

warning: implicit declaration of function ‘htol’ [-Wimplicit-function-declaration]

 

   编译器默认该函数会在其他的模块中定义,在链接阶段,如果还未找到该函数定义则报链接错误,一般错误信息如下:

echosrv.c:(.text+0x8f):对‘htol’未定义的引用

collect2: error: ld returned 1 exit status

 

posted on 2016-05-03 23:54  RenewDo  阅读(166)  评论(0编辑  收藏  举报

导航