シヴァのブログ

UnityやUE4や趣味とかいろいろ...

「Cocos2d-x」エラー処理

エラー処理をメモ。


※Visualstudio上でエラーが出なくても、AndroidStudio上ではエラーが出ることもある



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

訳:
コンパイラがテキストファイルを読む際に、現在設定されているコードページでは表現不可能な文字が含まれている。Unicodeで保存し直せ。



Android ndk std::to_string support
c++ - Android ndk std::to_string support - Stack Overflow


Can't open file by fstream cocos2d-x
Can't open file by fstream cocos2d-x - Stack Overflow


c1070 mismatched #if/#endif pair in file
以下のようにきちんと書く。

#ifndef FONT_H_INCLUDED
#define FONT_H_INCLUDED

//SouceCode

#endif // FONT_H_INCLUDED