gregdom13 / curlpp

Automatically exported from code.google.com/p/curlpp
0 stars 0 forks source link

Can't build #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. make 

What is the expected output? What do you see instead?
Output is:

    then mv -f ".deps/LifetimeLibrary.Tpo" ".deps/LifetimeLibrary.Plo"; else
rm -f ".deps/LifetimeLibrary.Tpo"; exit 1; fi
In file included from LifetimeWithLongevity.hpp:54,
                 from SingletonHolder.hpp:31,
                 from LifetimeLibrary.cpp:1:
LifetimeWithLongevity.inl: In function 'void utilspp::setLongevity(T*,
unsigned int, TDestroyer)':
LifetimeWithLongevity.inl:19: error: 'upper_bound' is not a member of 'std'
LifetimeLibrary.cpp: In member function 'void
utilspp::LifetimeLibraryImpl::add(utilspp::PrivateMembers::LifetimeTracker*)':
LifetimeLibrary.cpp:29: error: 'upper_bound' is not a member of 'std'
make[2]: *** [LifetimeLibrary.lo] Error 1
make[2]: Leaving directory `/home/jake/Desktop/curlpp-0.7.2/utilspp/singleton'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jake/Desktop/curlpp-0.7.2/utilspp'
make: *** [all-recursive] Error 1
jake@desktop:~/Desktop/curlpp-0.7.2$ 

What version of the product are you using? On what operating system?

Ubuntu 9.04 x86_64 - curlpp-0.7.2 - GCC 4.3

Original issue reported on code.google.com by painej...@gmail.com on 13 Jul 2009 at 5:52

GoogleCodeExporter commented 9 years ago
This is fixed by adding these includes:

#include <algorithm> to LifetimeWithLongevity.hpp
#include <string.h> to CurlHandle.hpp
#include <cstdlib> to cURLpp.hpp

As explained on the mailing list
http://groups.google.com/group/curlpp/browse_thread/thread/e3df334f0737040e?hl=e
n

Original comment by a...@potatoriot.com on 17 Jul 2009 at 7:39