error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before

用makefile的时候遇到了这个错误,Test.h:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CTest’


原因:用gcc 编译.cpp文件了(CTest是类名)




你可能感兴趣的:(gcc,makefile)