Qt creator 运行良好,但突然出现问题 error: LNK1181: cannot open input file 'debug\main.obj'
。
此问题始终显示在任何类型的应用程序中 GUI
或 console
。
我已经卸载了Qt,然后重新安装,但问题仍然存在。
我没有在 Qt creator 设置中做任何事情,我保留了默认设置。
以下应用程序是简单的控制台应用程序,其中出现相同的问题。
//main.cpp
#include <QCoreApplication>
int main(int argc, char *argv[]){
QCoreApplication a(argc, argv);
return a.exec();
}
注意:我使用 Qt 5.1.1 for Windows 32 位(VS 2010,OpenGL)。
原文由 Lion King 发布,翻译遵循 CC BY-SA 4.0 许可协议
如果您的项目路径(任何文件夹的名称)包含空格,也会出现此问题。