I'm trying to build the current git version of Wt and I get this error:

[  7%] Building CXX object src/CMakeFiles/wt.dir/web/WebSession.o
/home/rdale/src/wt/src/web/WebSession.C:62: error:
‘Wt::WebSession::Handler* Wt::WebSession::Handler::threadHandler_’ is
not a static member of ‘class Wt::WebSession::Handler’
make[2]: *** [src/CMakeFiles/wt.dir/web/WebSession.o] Error 1
make[1]: *** [src/CMakeFiles/wt.dir/all] Error 2

I'm building non-threaded version of Wt. The header and source file
look fine to me:

header:
#if defined(WT_THREADED) || defined(WT_TARGET_JAVA)
  boost::mutex mutex_;
  static boost::thread_specific_ptr<Handler> threadHandler_;
#else
  static Handler *threadHandler_;
#endif // WT_TARGET_JAVA

src:
#if defined(WT_THREADED) || defined(WT_TARGET_JAVA)
boost::thread_specific_ptr<WebSession::Handler> WebSession::threadHandler_;
#else
WebSession::Handler * WebSession::Handler::threadHandler_;
#endif

Maybe it is some sort of compiler bug - has anyone else had the same
problem? My compiler is:

mardigras rdale 505% gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

-- Richard

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to