久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

幫助中心 >  技術知識庫 >  數據庫 >  相關技術支持 >  如何處理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 22236

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

1.png

解決方法:

找到stion.in.h文件,在文件中通過關鍵字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 下面還有一個 #endif):

重新編譯即可!


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

這條文檔是否有幫助解決問題?

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

在文檔使用中是否遇到以下問題: