国产欧美日韩第一页|日本一二三不卡视频|在线精品小视频,亚洲第一免费播放区,metcn人体亚洲一区,亚洲精品午夜视频

幫助中心 >  技術(shù)知識庫 >  數據庫 >  相關(guān)技術(shù)支持 >  如何處理stdio.h:1010:1: error: 'gets;undeclared here (not in a function)

如何處理stdio.h:1010:1: error: 'gets;undeclared here (not in a function)

2019-04-08 14:52:14 16125

在編譯安裝libiconv提示如下錯誤:
stdio.h:1010:1: error: 'gets;undeclared here (not in a function)

1.png

解決方法:

找到stion.in.h文件,在文件中通過(guò)關(guān)鍵字gets找到698行位置將其 和695行一同注釋
然后在注釋行下面添加下面三行
   #if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)

_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

#endif

   2.png

保存退出?。ㄗ⒁?endif 下面還有一個(gè) #endif):

重新編譯即可!


提交成功!非常感謝您的反饋,我們會(huì )繼續努力做到更好!

這條文檔是否有幫助解決問(wèn)題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問(wèn)題:
-->