QT的close和系統的close衝突

在QT中關於文件讀寫,即便加了頭文件,你會發現close()函數會報錯函數

 error: no matching function for call to 'communicat::close(int&),io

由於QT自己也有close函數,就會發生衝突。function

因此若是是文件讀寫函數須要寫成以下格式call

::close(fd)error

相關文章
相關標籤/搜索