I've looked into it properly, and can't figure out why it's failing
with g++ (works with MSVC) even after #include functional and
algorithms and putting std:: everywhere.

I'll rewrite it this evening to avoid using the STL; in the meanwhile,
you can just comment out the body of this function to compile it. This
won't introduce any additional errors.

- Noel

On 17 June 2010 17:02, David Lonie <[email protected]> wrote:
> Hi Noel,
>
> I added it, but it still fails to compile, same error. Odd thing is
> that the current trunk compiles fine on my laptop. Any other ideas?
>
> Dave
>
> On Thu, Jun 17, 2010 at 11:35 AM, Noel O'Boyle <[email protected]> wrote:
>> That's me. I must have to #include <algorithm>. Can you stick this at
>> the top of perception.cpp and see if it works? If so, and you don't
>> have commit access, I'll check it in.
>>
>> - Noel
>>
>> On 17 June 2010 16:31, David Lonie <[email protected]> wrote:
>>> There seems to be a problem with a recent commit to trunk:
>>>
>>> openbabel-trunk/src/stereo/perception.cpp: In function ‘void
>>> OpenBabel::StereoRefToImplicit(OpenBabel::OBMol&, long unsigned int)’:
>>> openbabel-trunk/src/stereo/perception.cpp:1851: error: no matching
>>> function for call to ‘replace_if(__gnu_cxx::__normal_iterator<long
>>> unsigned int*, std::vector<long unsigned int, std::allocator<long
>>> unsigned int> > >, __gnu_cxx::__normal_iterator<long unsigned int*,
>>> std::vector<long unsigned int, std::allocator<long unsigned int> > >,
>>> const std::binder1st<std::equal_to<long unsigned int> >&,
>>> OpenBabel::OBStereo::<anonymous enum>)’
>>> openbabel-trunk/src/stereo/perception.cpp:1858: error: no matching
>>> function for call to ‘replace_if(__gnu_cxx::__normal_iterator<long
>>> unsigned int*, std::vector<long unsigned int, std::allocator<long
>>> unsigned int> > >, __gnu_cxx::__normal_iterator<long unsigned int*,
>>> std::vector<long unsigned int, std::allocator<long unsigned int> > >,
>>> const std::binder1st<std::equal_to<long unsigned int> >&,
>>> OpenBabel::OBStereo::<anonymous enum>)’
>>> make[2]: *** [src/CMakeFiles/openbabel.dir/stereo/perception.o] Error 1
>>>
>>> On linux with gcc 4.1.2
>>>
>>> Cheers,
>>> Dave
>>>
>>> ------------------------------------------------------------------------------
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit.  See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> OpenBabel-Devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/openbabel-devel
>>>
>>
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
OpenBabel-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to