[英]Run Wt Framework in Qt Creator
I'm just trying to run an example from https://www.webtoolkit.eu/wt我只是想从https://www.webtoolkit.eu/wt运行一个示例
I have downloaded precompiled binaries from https://github.com/emweb/wt/releases我已经从https://github.com/emweb/wt/releases下载了预编译的二进制文件
I choose "Wt-4.3.1-msvs2017-Windows-x64-SDK.zip" and extracted into a folder.我选择“Wt-4.3.1-msvs2017-Windows-x64-SDK.zip”并解压到一个文件夹中。
Kit i use: Qt 5.12.0 MSVC 2017 x64我使用的套件:Qt 5.12.0 MSVC 2017 x64
Then i added into my Qt project.pro file next lines:然后我将下一行添加到我的 Qt project.pro 文件中:
LIBS += -L"C:/wt/lib"
INCLUDEPATH += C:/wt/include
In main.cpp i added the next code:在 main.cpp 我添加了下一个代码:
#include <Wt/WApplication.h>
#include <Wt/WServer.h>
int main(int argc, char *argv[])
{
return Wt::WRun(argc, argv, [](const Wt::WEnvironment &env){
auto app = std::make_unique<Wt::WApplication>(env);
return app;
});
}
When i try to run this stuff i get an error (127 errors): LNK 2001, LNK 2019, LNK 1120当我尝试运行这些东西时,我收到一个错误(127 个错误):LNK 2001、LNK 2019、LNK 1120
Here is screenshot of the errors and source这是错误和来源的屏幕截图
.pro file 。轮廓
I think you need to specify which libs you need to link with explicitly.我认为您需要指定需要明确链接的库。 Check out: How to add additional libraries to Visual Studio project?查看: 如何向 Visual Studio 项目添加其他库?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.