curlppをmacにインストール
C++でhttp getをしたい。
wget http://jaist.dl.sourceforge.net/project/curlpp/curlpp%20-%20devel/0.5.0-rc1/curlpp-0.5.0-rc1.tar.gz tar -zxvf curlpp-0.5.0-rc1.tar.gz cd curlpp-0.5.0-rc1 ./configure --prefix=/opt/local make
makeが通らない
make
make all-recursive Making all in curlpp if /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../ -g -W -Wall -Werror -I/opt/local/include -MT CurlHandle.lo -MD -MP -MF ".deps/CurlHandle.Tpo" -c -o CurlHandle.lo CurlHandle.cpp; \ then mv -f ".deps/CurlHandle.Tpo" ".deps/CurlHandle.Plo"; else rm -f ".deps/CurlHandle.Tpo"; exit 1; fi cc1plus: warnings being treated as errors Exception.hpp:138: warning: unused parameter ‘other’ Exception.hpp:138: warning: unused parameter ‘other’ OptionBase.hpp:38: warning: ‘class cURLpp::OptionBase’ has virtual functions but non-virtual destructor make[2]: *** [CurlHandle.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Make通らないけど、意外とエラーが少ない。
仮想関数を持っているのにデストラクタが仮想関数じゃない?という事なのかな?
今はまだC++がよくわかってないからどうすりゃいいのかわからないけど、ちょっと調べればコード修正して通せそうだ。