Hi, Right, figured it out.
Apparently, compiling with gcc > version 4.3 causes endless complications with std includes: http://gcc.gnu.org/gcc-4.3/porting_to.html I'm using gcc 4.3.3, as apt-get installs as on Ubuntu 9.04. Below is the order that I added std headers to rectify errors as I encountered them through the make process. Might not be the most economic method, but scope-wise, seems fine. To get through all make errors, add: #include <algorithm> to LifetimeWithLongevity.hpp #include <string.h> to CurlHandle.hpp #include <cstdlib> to cURLpp.hpp This should rectify all header issues in the library itself. Think 4.3.3 is particularly picky when it comes to a few warnings in the example files. In examples 13 & 14, empty while statements: while(!requests.perform(&nbLeft)); need brackets or something to action, i.e.: while(!requests.perform(&nbLeft)){}; Example 18 would not compile, found including config.h to global.h fixed, thanks to: http://hakki.cornelii.org/building_curlpp.html One issue I couldn't remedy is in example 11. Line 70 - fprintf(stderr, strerror(errno)); produced: example11.cpp:70: error: format not a string literal and no format arguments As it's a NULL file reference error catch, I commented it out to skip it, but obviously would hope to go back and remedy it properly. Hope this helps, and thanks everyone for the replies. Not sure who would want to commit these fixes, or if it's worth the bother, but hope this has highlighted it for anyone struggling. Cheers, AJ On 18 May, 11:09, "acerqu...@googlemail.com" <acerqu...@googlemail.com> wrote: > Hi, > > Downloaded 0.7.2, same issue: > > make > Making all in utilspp > make[1]: Entering directory `/home/acerqueti/dev/curlpp-0.7.2/utilspp' > Making all in functor > make[2]: Entering directory `/home/acerqueti/dev/curlpp-0.7.2/utilspp/ > functor' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/acerqueti/dev/curlpp-0.7.2/utilspp/ > functor' > Making all in singleton > make[2]: Entering directory `/home/acerqueti/dev/curlpp-0.7.2/utilspp/ > singleton' > if /bin/bash ../../libtool --silent --tag=CXX --mode=compile g++ - > DHAVE_CONFIG_H -I. -I. -I../../curlpp -g -W -Wall -Werror -I/ > usr/include -MT LifetimeLibrary.lo -MD -MP -MF ".deps/ > LifetimeLibrary.Tpo" -c -o LifetimeLibrary.lo LifetimeLibrary.cpp; \ > 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/acerqueti/dev/curlpp-0.7.2/utilspp/ > singleton' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/acerqueti/dev/curlpp-0.7.2/utilspp' > make: *** [all-recursive] Error 1 > > Is there any chance I'm missing some dependency I'm not aware of or > something similar? > > Thanks, > > AJ > > On 15 May, 23:21, "acerqu...@googlemail.com" > > <acerqu...@googlemail.com> wrote: > > D'oh! Will download 0.7.2 and give it a go. Will let you know how I > > get on. Thanks. > > > AJ > > > On 15 May, 18:13, jpbarre...@gmail.com wrote: > > > > ---------- Forwarded message ---------- > > > From: jpbarre...@gmail.com > > > Date: May 15, 2009 1:02pm > > > Subject: Re: Re: Installing on Ubuntu 9.04 > > > To: Ben <thecreepingde...@gmail.com> > > > CC: > > > > > On May 15, 2009 12:41pm, Ben thecreepingde...@gmail.com> wrote: > > > > > > I'm not sure what's causing that error but why are you using > > > > > > curlpp-0.6.1? 0.7.2 is the latest stable release... > > > > > Yeah, you should use the latest version. > > > > > > > On a side note, what is the likelihood of getting curlpp added to a > > > > > > > deb repo for quick and simple install using apt-get at some point in > > > > > > > the future? libmysql++ and libxml++ are both available as packages, > > > > > > a > > > > > > > libcurl++ package would complete an amazing trifecta. Would love to > > > > > > > help make this happen. > > > > > I worked on that some time ago (debian packaging), but I think I lost > > > > that > > > > work. However, fink has curlpp packaged, and since fink uses apt-get > > > > underneath (If I'm not mistaken), I think it should be easy to have some > > > > working debian package. > > > > > > > Cheers, > > > > > > > AJ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "curlpp" group. To post to this group, send email to curlpp@googlegroups.com To unsubscribe from this group, send email to curlpp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/curlpp?hl=en -~----------~----~----~----~------~----~------~--~---