程序运行时出现如下错误: 只要设置自动编译就可以了: 选择项目右击 选择Properties->Run/Debug Settings->New->c/c++ Application->点击ok->选择Enable auto build 如图: 相关文章: