[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster] compiling cpp-lib on freebsd with boost


I can't seem to compile cpp-lib with boost on my machine. I am using the
Boost thread library, but I get a ton of errors emanating from this method:

bool Thread::start()
   if (isStarted_) return false;
   isStarted_ = true;
   if (!runner_) runner_ = new ThreadRunner(*this);
   if (!thread_) thread_ = new ThreadImpl(*runner_);
   return true;

In particular, the new ThreadImpl invocation causes tons of errors.  I'm
attaching a file with the output of this compilation line:

-I/usr/local/include -I/usr/local/include/xercesc

The compile error suggests that 

/home/y/include/boost/type_traits/is_convertible.hpp:191: template
instantiation depth exceeds maximum of 17
/home/y/include/boost/type_traits/is_convertible.hpp:191:  (use
-ftemplate-depth-NN to increase the maximum)

So, I tried adding -ftemplate-depth-20, and it seems to work fine... but I'm
not sure this is the right thing to do.