Pekka, I can see that this could happen when you mix a pre-2.99 Wt with 2.99 Wt code. The reason for the version jump is that we broke the API, and the most important change is in the signal syntax. Before, signals were public embedded objects, but now they are public methods that return a reference to the signal object. Instead of b->clicked().connect(...) (new style), write b->clicked.connect() (old style).
We recommend to use the latest wt 2.99.* version. But in any case, the hello.C from the source package should compile against the wt version it is supplied with. Best regards, Wim. 2009/7/30 Pekka Korolainen <[email protected]>: > Hi there. I was looking for something fun to do while I'm unemployed, > trying out Wt seemed like fun. Problem is, I can't even get the Hello, > World-example to compile! > > I use the source from http://www.webtoolkit.eu/wt#/src/hello, > copy-paste it to wttest.C... > > $ g++ wttest.C > wttest.C: In constructor ‘HelloApplication::HelloApplication(const > Wt::WEnvironment&)’: > wttest.C:57: error: no match for call to ‘(Wt::EventSignal<Wt::WMouseEvent>) > ()’ > /usr/include/Wt/WSignal:862: note: candidates are: void > Wt::EventSignal<E>::operator()(E) [with E = Wt::WMouseEvent] > wttest.C:58: error: invalid use of ‘void’ > > Most of the examples that came with the package (this is on Ubuntu) > work.. What could I be doing wrong? > > Thanks, > > .p > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
