宏定义如下:
#define RBRAND "test"
#define VER "1"
#define BRANCH "A"
#define CAMERA_VERSION RBRAND"_"VER"_"BRANCH
编译: C ++11提示错误
invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
修正方法:
makefile中编译选项加上如下参数:
CXXFLAGS = -std=c++11 -Wno-literal-suffix