簡體   English   中英

嘗試在 Qt creator 上編譯時出錯(警告被視為錯誤)

[英]Getting errors when trying to compile on Qt creator (warning treated as error)

我一直在嘗試編譯一些我從 github (qgroundcontrol) 上得到的源代碼,但一直有錯誤,而且我很難修復它..

我總是遇到這些同樣反復出現的問題;

error: C2220: warning treated as error - no 'object' file generated

warning: C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss

構建時將警告視為錯誤

有時,一行中有不可見的 Unicode 字符。 如果它發生在一行中,請剪下整行並再次輸入 - 不要復制/粘貼,因為您會再次輸入奇怪的字符。 如果您有合適的編輯器,例如 BBEDit,您可以搜索/替換這些字符。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM