My first program just bails, I was hoping someone could tell me what I am doing
wrong.
My main looks like this:
#include "mywidget.h"
#include <Wt/WEnvironment>
WApplication *createApplication(const WEnvironment& env)
{
WApplication *app = new WApplication(env);
app->root()->addWidget(new MyWidget());
return app;
}
int main(int argc, char *argv[])
{
return WRun(argc, argv, &createApplication);
}
I compiled with -lwt and -lwthttp and got:
stat: No such file or directory
Error: Document root ("") not valid.
To me this is confusing because I do not wish to have a root folder, I only
want MyWidget displayed. FWIW, the MyWidget just adds some WInteractiveWidgets
to itself, a WContainterWidget.
Any help for this noob?
Thanks!
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest