使用c99編譯出warning: implicit declaration of function ‘popen’

問題: ubuntu中使用gcc 4.6.3編譯代碼。ubuntu 源代碼中使用了popen()和pclose()函數,當源代碼沒使能c99選項前,編譯結果不報warnings;使能c99選項後(gcc -std=c99),編譯時出現warnings:函數 controller.c:482:5: warning: implicit declaration of function ‘popen’ [
相關文章
相關標籤/搜索