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

[xmlblaster] compiling cpp-lib on freebsd with boost



Hi,

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:


gcc -c -g -fPIC -DCOMPILE_SOCKET_PLUGIN=1 -DXMLBLASTER_NONE=1
-DBOOST_ASSERT_CONFIG=1 -DBOOST=1
-I/home/dviner/mom/xb-svn/xmlBlaster/build.tmp/src/c++
-I/home/dviner/mom/xb-svn/xmlBlaster/build.tmp/src/c
-I/opt/ACE_wrappers/TAO/include
-I/home/dviner/mom/xb-svn/xmlBlaster/build.tmp/src/c++/generated
-I/usr/local/include -I/usr/local/include/xercesc
/home/dviner/mom/xb-svn/xmlBlaster/build.tmp/src/c++/util/thread/ThreadImpl.
cpp

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.

thanks
dave