It seems I learn best by expanding examples from the tutorials and  
example files - but I usually end up about a half step ahead of what I  
really understand.  I'm trying to split my code into .C and .h files  
based on several of the files in the charts example, and I've ended up  
with a compiler error.  It looks like it is coming from the first line  
of the file (following a path of #include's) but if I truncate the  
file, it compiles.

File traitsUI.C has first three lines:
  #include "wttrees.h"
  #include "traitsUI.h"
  #include "traitsDB.h"

File wttrees.h starts with
   #ifndef WTTREES_H_
   #define WTTREES_H_
   #include <Wt/WApplication>
and then has one class definition, similar to a simplified version from  
the charts example.

Compiling this gives:
In file included from /usr/include/Wt/WWebWidget:14:0,
                  from /usr/include/Wt/WBreak:10,
                  from /usr/include/Wt/WCssStyleSheet:14,
                  from /usr/include/Wt/WApplication:23,
                  from /var/www/treesdb/htdocs/wttrees/src/wttrees.h:4,
                  from /var/www/treesdb/htdocs/wttrees/src/traitsUI.C:1:
/usr/include/boost/noncopyable.hpp: In member function 'Wt::WWidget&  
Wt::WWidget::operator=(const Wt::WWidget&)':
/usr/include/boost/noncopyable.hpp:28:26: error: 'const  
boost::noncopyable_::noncopyable&  
boost::noncopyable_::noncopyable::operator=(const  
boost::noncopyable_::noncopyable&)' is private
/usr/include/Wt/WWidget:66:1: error: within this context

If I truncate traitsUI.C after those three lines, that file compiles,  
and I get errors in the next file.  However, as I'm working my way  
through those errors, it seems that I can fix an error on line 15, and  
the next compile shows an error on line 5.  Because of this, I'm  
assuming the above error might actually be due to something I'm doing  
later in the file.  Can anybody suggest what type of thing might I be  
doing to cause it - or which piece of the documentation to read to get  
a better handle on what I'm probably doing wrong?  As far as I know,  
the only boost related stuff I've added so far is a dbo::collection in  
traitsDB.C, which is why I don't understand getting the error above -  
when that file isn't involved.

Thanks for any suggestions on how I can go about unraveling and  
understanding this.

Jack
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to