在某些C++编译器中出现以下警告的原因是什么?
文件末尾没有换行符
为什么我应该在源/头文件的末尾有一个空行?
c++ compiler-construction warnings c-preprocessor
我的cocos2d iOS游戏代码在Xcode 4.2.1中编译并运行时没有错误,但Xcode 4.3 beta 2在"文件末尾没有换行符"错误时停止.错误发生在很多coco2d文件中.
我该怎么办?
xcode llvm clang
c++ ×1
c-preprocessor ×1
clang ×1
compiler-construction ×1
llvm ×1
warnings ×1
xcode ×1