deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
.CPP文件用gcc编译出现错误。 首先,它任然是有效的C++代码,因为你写的char* 是具有c风格的字符串,所以g++不识别 const char *file_name[MEMORY_FILE_NUM] = {"A.h264","B.h264","C.h264","D.h264","E.h264"}; char *背后的含义是:给我个字符串,我要修改它。而理论上,我们传给函数的字面常量是没法被…