Qt 错误:LNK1181:无法打开输入文件 'debug\main.obj' [英] Qt error: LNK1181: cannot open input file 'debug\main.obj'

查看:711
本文介绍了Qt 错误:LNK1181:无法打开输入文件 'debug\main.obj'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Qt creator 运行良好,但突然出现问题error: LNK1181: cannot open input file 'debug\main.obj'.
这个问题总是出现在任何类型的应用程序中,GUIconsole.
我已经卸载了 Qt 并重新安装,但问题仍然存在.
我在Qt Creator的设置里没有做任何事情,我保留了默认设置.

Qt creator was working well, but suddenly shows a problem error: LNK1181: cannot open input file 'debug\main.obj'.
This problem shows always with any type of application either GUI or console.
I've uninstall the Qt, and install again, but the problem still exists.
I did not do anything in the Qt creator settings, I left the default settings.

以下应用程序是简单的控制台应用程序,在其中出现同样的问题.

The following application is simple console application occur the same problem in it.

//main.cpp
#include <QCoreApplication>

int main(int argc, char *argv[]){
    QCoreApplication a(argc, argv);

    return a.exec();
}

注意:我将 Qt 5.1.1 用于 Windows 32 位(VS 2010、OpenGL).

Note: I'm using Qt 5.1.1 for Windows 32-bit (VS 2010, OpenGL).

推荐答案

如果您的项目路径(任何文件夹的名称)包含空格,也会出现此问题.

This problem also occurs if the path of your project (name of any folder) contains a white space.

这篇关于Qt 错误:LNK1181:无法打开输入文件 'debug\main.obj'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆