【发布时间】:2012-05-29 10:51:07
【问题描述】:
我正在尝试让 Wt 与 Qt 一起工作。我已经安装了 1.47 boost 库,在 Windows 下使用 cmake 2.8.8 编译了 Wt (3.2.1)。厌倦了简单的 hello world 但无法编译,例如出现未定义的引用错误: 未定义对 `Wt::WApplication::WApplication(Wt::WEnvironment const&, Wt::WtLibVersion)'的引用
Here is my .pro file:
QT -= core
QT -= gui
INCLUDEPATH += ../../../lib/Wt/include \
../../../lib/boost_1_47 \
../../../lib/Wt/src
LIBS += -L../../../lib/Wt/lib \
-L../../../lib/boost_1_47/lib
win32:LIBS += -lwthttpd -lwtd -lboost_regex-vc100-mt-1_47
TARGET = HttpServerWt
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
这是我要编译的程序: http://www.webtoolkit.eu/wt/src/hello
【问题讨论】: