gcc 注释掉#include 就报错
很奇怪的问题,比如原来文件里有
#include "a.h",我修改的时候,前面加上注释
如//#include "a.h",就报如下这个错
error: expected identifier or '(' before '/' token
肯定不是因为该段真的需要a.h文件里的东西产生的错.
[解决办法]
http://www.delorie.com/djgpp/v2faq/faq8_4.html
http://stackoverflow.com/questions/2713089/beginner-problem-error-with-ansi-c-and-gcc-under-ubuntu
编译的时候用 -ansi了吧,