1
我不得不問這個問題,因爲我找不到任何匹配的結果。有很多identifier "x" is undefined
但沒有「Do」。標識符「do」未定義
因此,我收到錯誤消息:identifier "Do" is undefined
,不知道如何解決它。
我以前有錯誤:identifier "string" is undefined
,我通過將其更改爲std::string
並添加#include <string>
來解決。我對「做」嘗試了相同的方法,但Do不是namespace std
的成員。
可能值得指出的是我正在使用Visual C++並且正在編輯Half-Life 2源代碼。
任何人都可以幫助我理解爲什麼我會得到這個錯誤以及我如何解決它?謝謝!
您應該至少引用違規代碼。對於C++,正確的關鍵字是'do'。套管很重要。 – unwind
C++區分大小寫,所以不要做'做',而是做'做':) – Stormenet