Project

General

Profile

nothing displayed in browser window ยป wttest.cpp

Minimal example - First Last, 09/17/2015 10:03 PM

 
#include <Wt/WApplication>
#include <Wt/WText>

class Application : public Wt::WApplication
{
public:
Application(const Wt::WEnvironment& environment);
};

Application::Application(const Wt::WEnvironment& environment)
:Wt::WApplication(environment)
{
Wt::WText("some text",root());
}

int main(int argc, char **argv)
{
Wt::WRun(argc,argv,[&](const Wt::WEnvironment &env){return new Application(env);});
}
    (1-1/1)