From: Lenica R. <Lr...@ia...> - 2009-05-05 09:09:56
|
Thanks for the tips. I tried editing the file translate_exception.hpp , but later on got another error with the linker, so I decided, the hell with this, and installed the boost 1.35 libraries instead of their newer versions and finally got it to work. Hopefully everything will work fine now. Anyways, thanks again! Bruce Sherwood wrote: > I recognize this problem, which is a bug in some versions of the Boost > libraries. What version of Boost are you using? > > I found the following on the web: > > ************** > Furthermore building pyrap with boost-1.37 and gcc-4.3.2 gave an error > due to a missing include. The following patch has to be applied to boost: > > Index: boost/python/detail/translate_exception.hpp > =================================================================== > --- boost/python/detail/translate_exception.hpp (revision 50228) > +++ boost/python/detail/translate_exception.hpp (working copy) > @@ -9,6 +9,7 @@ > > # include <boost/call_traits.hpp> > # include <boost/type_traits/add_const.hpp> > +# include <boost/type_traits/add_reference.hpp> > > # include <boost/function/function0.hpp> > *************** > > I was able to build Visual 5 on ubuntu 9.04 without having to make > this change, as I happened to pick Boost 1.35 in the package manager, > which apparently doesn't have this bug, but I had to make this change > on Windows using Boost 1.38. > |