【解决问题】在ubuntu中使用CMakeLists.txt运行c文件,出现error: ISO C++ forbids declaration of ‘point’ with no type [-fpermissive]
报错:error: ISO C++ forbids declaration of ‘point’ with no type [-fpermissive]
解决方案:这个问题也可能是C++标准的原因,在CMakeLists.txt中加上设置成C++11
add_definitions(-std=c++11)
如下图所示
参考文献:
https://blog.csdn.net/a1059682127/article/details/89082852