AI智能
改变未来

解决“nmake main“运行不了问题


解决\”nmake main\”运行不了问题

报错如下:
Microsoft Windows [Version 10.0.19041.388](c) 2020 Microsoft Corporation. 保留所有权利。C:\\Users\\Administrater>e:E:\\>cd E:\\软件编程实践\\大师笔记作业\\day02\\qt_uiE:\\软件编程实践\\大师笔记作业\\day02\\qt_ui>vcvars64************************************************************************ Visual Studio 2019 Developer Command Prompt v16.6.3** Copyright (c) 2020 Microsoft Corporation**********************************************************************[vcvarsall.bat] Environment initialized for: \'x64\'E:\\软件编程实践\\大师笔记作业\\day02\\qt_ui>nmake mainMicrosoft (R) Program Maintenance Utility Version 14.26.28806.0Copyright (C) Microsoft Corporation.  All rights reserved.main.cppzjkapp.cppzjkdialog.cppmain.obj : error LNK2019: unresolved external symbol \"public: __cdecl ZJKApp::ZJKApp(int,char * *)\" (??0ZJKApp@@QEAA@HPEAPEAD@Z) referenced in function mainmain.obj : error LNK2019: unresolved external symbol \"public: virtual __cdecl ZJKApp::~ZJKApp(void)\" (??1ZJKApp@@UEAA@XZ) referenced in function mainmain.obj : error LNK2019: unresolved external symbol \"public: __cdecl ZJKDialog::ZJKDialog(class QWidget *)\" (??0ZJKDialog@@QEAA@PEAVQWidget@@@Z) referenced in function mainmain.obj : error LNK2019: unresolved external symbol \"public: virtual __cdecl ZJKDialog::~ZJKDialog(void)\" (??1ZJKDialog@@UEAA@XZ) referenced in function mainmain.exe : fatal error LNK1120: 4 unresolved externalsNMAKE : fatal error U1077: \'\"D:\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX64\\x64\\link.EXE\"\' : return code \'0x460\'Stop.E:\\软件编程实践\\大师笔记作业\\day02\\qt_ui>main\'main\' is not recognized as an internal or external command,operable program or batch file.E:\\软件编程实践\\大师笔记作业\\day02\\qt_ui>
解决办法:windeployqt main.exe接着报错如下:
E:\\软件编程实践\\大师笔记作业\\day02\\qt_ui>windeployqt mainWarning: Unable to read D:\\Qt\\Qt5.13.0\\mkspecs\\qconfig.pri:E:\\软件编程实践\\大师笔记作业\\day02\\qt_ui>
解决办法:Qt没安装好,安装Qt5.14。
赞(0) 打赏
未经允许不得转载:爱站程序员基地 » 解决“nmake main“运行不了问题