From: Peter C. C. <pc...@so...> - 2005-12-10 00:03:50
|
Hello! I'm attempting to compile OpenC++ under Cygwin on my Windows XP machine. The compile is failing during the processing of driver.cc with the following message: /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_algobase.h: In function `void std::swap(_Tp&, _Tp&) [with _Tp = std::auto_ptr<Opencxx::MetacompilerConfiguration::IteratorIface>]': ../opencxx/MetacompilerConfiguration.h:50: instantiated from here /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_algobase.h:132: error: passing `const std::auto_ptr<Opencxx::MetacompilerConfiguration::IteratorIface>' as `this' argument of `std::auto_ptr<_Tp>::operator std::auto_ptr_ref<_Tp1>() [with _Tp1 = Opencxx::MetacompilerConfiguration::IteratorIface, _Tp = Opencxx::Meta compilerConfiguration::IteratorIface]' discards qualifiers It looks like I'm trying to convert a const auto_ptr to an auto_ptr_ref and gcc isn't going for it. I'm using v3.4.4 and I'm wondering if perhaps the code was originally written for an older version of the compiler. Would I be better advised to use the CVS version over the current official version? The message above came during an attempt to compile v2.8. Thanks! Peter |