1、Project->Build Options->Search directories 设置当前工程路径,可以解决找不到头文件的问题。 2、minGW不支持带空格的路径,会出现编译错误,因此不能将工程放在带空格的路径中。