line 187 needs to change from:
Wt::WContainerWidget *l1 = new Wt::WContainerWidget(root());
to
Wt::WContainerWidget *l1 = new Wt::WContainerWidget(x.root());
As the compiler is saying, the compiler doesn't know what root is unless you
tell it 'root on this instance of WTApplication.
also, I think it doesn't need to be a friend function for root, as
WApplication::root() is public I think from memory ..
All the best,
Matthew Sherborne
On Tue, Sep 20, 2011 at 9:59 PM, PARVINDER RAJPUT <m...@parvinder.co.in>wrote:
> Hello Everyone
> check my application in witty...:-)
> http://202.164.53.122/wt/test1.wt
>
> I am facing some problem in root() part
> I need your help
> i am created friend function.
> visit my source code
> http://paste.ubuntu.com/693668/
>
> error
> /home/rajput/Desktop/website/source/test.h: In function ‘void
> populate1(WtApplication&)’:
> /home/rajput/Desktop/website/source/test.h:218: error: ‘root’ was not
> declared in this scope
>
> please help me
> Thanks in advance
> --
> Parvinder Rajput
> website:- www.parvinder.co.in
>
>
> ------------------------------------------------------------------------------
> 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. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
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. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest