gpt4 book ai didi

c++ - 在Qt Creator中运行Wt Framework

转载 作者:行者123 更新时间:2023-12-02 10:31:11 24 4
gpt4 key购买 nike

我只是想从https://www.webtoolkit.eu/wt运行一个示例

我已经从https://github.com/emweb/wt/releases下载了预编译的二进制文件

我选择“Wt-4.3.1-msvs2017-Windows-x64-SDK.zip”并解压缩到一个文件夹中。

我使用的工具包:Qt 5.12.0 MSVC 2017 x64

然后我在下一行中将其添加到我的Qt项目.pro文件中:

LIBS += -L"C:/wt/lib"
INCLUDEPATH += C:/wt/include

在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;
});
}

当我尝试运行此东西时出现错误(127错误):LNK 2001,LNK 2019,LNK 1120

这是错误和来源的屏幕截图

.pro文件

最佳答案

我认为您需要指定需要显式链接的库。 checkout :How to add additional libraries to Visual Studio project?

关于c++ - 在Qt Creator中运行Wt Framework,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62179152/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com