Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Wt (we pronounce that as 'witty') is a C++ library for developing interactive web applications [1].
Add the following line to your Qt project file (to prevent link errors like undefined reference to 'Wt::WRun(int, char**, Wt::WApplication* (*)(Wt::WEnvironment const&))'):
LIBS += -lwt -lwthttp |
For a Wt application to run, choose one of these options:
INCLUDEPATH += ../../Classes/CppWtAutoConfig |
#include "wtautoconfig.h" |
I follow this approach in my larger programs, for example in TestGroupWidget (version 1.2).
int main(int, char *argv[]) |
I follow this approach my very small, mostly demonstrational, programs, for example in memcheck example 6.
--docroot . --http-address 0.0.0.0 --http-port 8080 |
Or to redirect the output to a log file (untested):
--docroot . --http-address 0.0.0.0 --http-port 8080 --accesslog access.log > /dev/null 2>&1 & |
I never follow this approach, because I prefer my solutions in code.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.