failed to compile examples
my env:
$ lsb_release -a
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
my codes:
$ git clone https://github.com/jpbarrette/curlpp
$ git clone https://github.com/curl/curl
$ cd curlpp/
$ g++ examples/example12.cpp -l curlpp -I include/
In file included from examples/example12.cpp:34:0:
include/curlpp/cURLpp.hpp:33:23: fatal error: curl/curl.h: No such file or directory
compilation terminated.
so i changed the compile command, then lots of wrong information returned
$ g++ examples/example12.cpp --l curl l curlpp -I include/ -I ../curl/include/
In file included from include/curlpp/internal/CurlHandle.hpp:30:0,
from include/curlpp/Easy.hpp:28,
from examples/example12.cpp:35:
include/curlpp/internal/../Types.hpp:39:15: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< size_t(char*, size_t, size_t) > WriteFunctionFunctor;
^
include/curlpp/internal/../Types.hpp:40:15: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< size_t(char*, size_t, size_t) > ReadFunctionFunctor;
^
include/curlpp/internal/../Types.hpp:42:22: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< int(curl_infotype, char *, size_t) > DebugFunctionFunctor;
^
include/curlpp/internal/../Types.hpp:43:22: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< CURLcode(void *) > SslCtxFunctionFunctor;
^
include/curlpp/internal/../Types.hpp:44:15: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< int(double, double, double, double)> ProgressFunctionFunctor;
^
In file included from include/curlpp/Easy.hpp:28:0,
from examples/example12.cpp:35:
include/curlpp/internal/CurlHandle.hpp:57:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<CurlHandle> clone() const;
^
include/curlpp/internal/CurlHandle.hpp:107:39: error: ‘curlpp::types::WriteFunctionFunctor’ has not been declared
void setWriteFunctor(curlpp::types::WriteFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:115:40: error: ‘curlpp::types::WriteFunctionFunctor’ has not been declared
void setHeaderFunctor(curlpp::types::WriteFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:123:38: error: ‘curlpp::types::ReadFunctionFunctor’ has not been declared
void setReadFunctor(curlpp::types::ReadFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:134:42: error: ‘curlpp::types::ProgressFunctionFunctor’ has not been declared
void setProgressFunctor(curlpp::types::ProgressFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:142:39: error: ‘curlpp::types::DebugFunctionFunctor’ has not been declared
void setDebugFunctor(curlpp::types::DebugFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:150:40: error: ‘curlpp::types::SslCtxFunctionFunctor’ has not been declared
void setSslCtxFunctor(curlpp::types::SslCtxFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:182:18: error: ‘WriteFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::WriteFunctionFunctor mWriteFunctor;
^
include/curlpp/internal/CurlHandle.hpp:183:18: error: ‘WriteFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::WriteFunctionFunctor mHeaderFunctor;
^
include/curlpp/internal/CurlHandle.hpp:184:18: error: ‘ReadFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::ReadFunctionFunctor mReadFunctor;
^
include/curlpp/internal/CurlHandle.hpp:185:18: error: ‘ProgressFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::ProgressFunctionFunctor mProgressFunctor;
^
include/curlpp/internal/CurlHandle.hpp:186:18: error: ‘DebugFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::DebugFunctionFunctor mDebugFunctor;
^
include/curlpp/internal/CurlHandle.hpp:187:18: error: ‘SslCtxFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::SslCtxFunctionFunctor mSslFunctor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setWriteFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:109:4: error: ‘mWriteFunctor’ was not declared in this scope
mWriteFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setHeaderFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:117:4: error: ‘mHeaderFunctor’ was not declared in this scope
mHeaderFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setReadFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:125:4: error: ‘mReadFunctor’ was not declared in this scope
mReadFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setProgressFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:136:4: error: ‘mProgressFunctor’ was not declared in this scope
mProgressFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setDebugFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:144:4: error: ‘mDebugFunctor’ was not declared in this scope
mDebugFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setSslCtxFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:152:4: error: ‘mSslFunctor’ was not declared in this scope
mSslFunctor = functor;
^
In file included from include/curlpp/Option.inl:27:0,
from include/curlpp/Option.hpp:251,
from include/curlpp/Easy.hpp:31,
from examples/example12.cpp:35:
include/curlpp/internal/OptionSetter.hpp: At global scope:
include/curlpp/internal/OptionSetter.hpp:125:21: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::WriteFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:125:21: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:126:38: error: template argument 1 is invalid
CURLOPT_WRITEFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:216:21: error: ‘ReadFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::ReadFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:216:21: error: ‘ReadFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:217:37: error: template argument 1 is invalid
CURLOPT_READFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:308:21: error: ‘ProgressFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::ProgressFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:308:21: error: ‘ProgressFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:309:41: error: template argument 1 is invalid
CURLOPT_PROGRESSFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:356:21: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::WriteFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:356:21: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:357:39: error: template argument 1 is invalid
CURLOPT_HEADERFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:405:21: error: ‘DebugFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::DebugFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:405:21: error: ‘DebugFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:406:38: error: template argument 1 is invalid
CURLOPT_DEBUGFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:453:21: error: ‘SslCtxFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::SslCtxFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:453:21: error: ‘SslCtxFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:454:41: error: template argument 1 is invalid
CURLOPT_SSL_CTX_FUNCTION>
^
In file included from examples/example12.cpp:35:0:
include/curlpp/Easy.hpp:58:23: error: expected ‘)’ before ‘<’ token
Easy(std::unique_ptr<internal::CurlHandle> handle);
^
include/curlpp/Easy.hpp:77:28: error: ‘std::unique_ptr’ has not been declared
virtual void setOpt(std::unique_ptr<OptionBase> option);
^
include/curlpp/Easy.hpp:77:38: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void setOpt(std::unique_ptr<OptionBase> option);
^
include/curlpp/Easy.hpp:153:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<internal::CurlHandle> mCurl;
^
include/curlpp/Easy.hpp: In member function ‘curlpp::internal::CurlHandle& curlpp::Easy::getCurlHandle()’:
include/curlpp/Easy.hpp:135:52: error: ‘mCurl’ was not declared in this scope
internal::CurlHandle & getCurlHandle() { return *mCurl; }
^
include/curlpp/Easy.hpp: In member function ‘const curlpp::internal::CurlHandle& curlpp::Easy::getCurlHandle() const’:
include/curlpp/Easy.hpp:136:64: error: ‘mCurl’ was not declared in this scope
const internal::CurlHandle & getCurlHandle() const { return *mCurl; }
^
In file included from include/curlpp/Easy.hpp:164:0,
from examples/example12.cpp:35:
include/curlpp/Easy.inl: In member function ‘void curlpp::Easy::getInfo(CURLINFO, T&) const’:
include/curlpp/Easy.inl:28:3: error: ‘mCurl’ was not declared in this scope
mCurl->getInfo(info, value);
^
In file included from examples/example12.cpp:36:0:
include/curlpp/Options.hpp: At global scope:
include/curlpp/Options.hpp:90:30: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::WriteFunctionFunctor, CURLOPT_WRITEFUNCTION>
^
include/curlpp/Options.hpp:90:30: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:90:88: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::WriteFunctionFunctor, CURLOPT_WRITEFUNCTION>
^
include/curlpp/Options.hpp:117:31: error: ‘ReadFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::ReadFunctionFunctor, CURLOPT_READFUNCTION>
^
include/curlpp/Options.hpp:117:31: error: ‘ReadFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:117:87: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::ReadFunctionFunctor, CURLOPT_READFUNCTION>
^
include/curlpp/Options.hpp:152:30: error: ‘ProgressFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::ProgressFunctionFunctor, CURLOPT_PROGRESSFUNCTION>
^
include/curlpp/Options.hpp:152:30: error: ‘ProgressFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:152:94: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::ProgressFunctionFunctor, CURLOPT_PROGRESSFUNCTION>
^
include/curlpp/Options.hpp:155:30: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::WriteFunctionFunctor, CURLOPT_HEADERFUNCTION>
^
include/curlpp/Options.hpp:155:30: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:155:89: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::WriteFunctionFunctor, CURLOPT_HEADERFUNCTION>
^
include/curlpp/Options.hpp:158:30: error: ‘DebugFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::DebugFunctionFunctor, CURLOPT_DEBUGFUNCTION>
^
include/curlpp/Options.hpp:158:30: error: ‘DebugFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:158:88: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::DebugFunctionFunctor, CURLOPT_DEBUGFUNCTION>
^
include/curlpp/Options.hpp:161:30: error: ‘SslCtxFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::SslCtxFunctionFunctor, CURLOPT_SSL_CTX_FUNCTION>
^
include/curlpp/Options.hpp:161:30: error: ‘SslCtxFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:161:92: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::SslCtxFunctionFunctor, CURLOPT_SSL_CTX_FUNCTION>
^
Any suggestion?
Sorry I'm away from computer for some days, so I can't reproduce your issue, and I'm not specialist of building under Linux. But I notice in your command usage of '--l' and later a missing '-' before 'l'. The error you get sounds that compiler didn't find the standard c++ library, or didn't recognise namespace keyword. Very strange as nothing in your command says you want to build in C. Sorry for the poor help.
@sgallou Oh, it's my mistake. But after i correct it, the example can't be compiled still. :-(
$ g++ examples/example12.cpp -l curlpp -I include/ -l curl -I ../curl/include/
In file included from include/curlpp/internal/CurlHandle.hpp:30:0,
from include/curlpp/Easy.hpp:28,
from examples/example12.cpp:35:
include/curlpp/internal/../Types.hpp:39:15: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< size_t(char*, size_t, size_t) > WriteFunctionFunctor;
^
include/curlpp/internal/../Types.hpp:40:15: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< size_t(char*, size_t, size_t) > ReadFunctionFunctor;
^
include/curlpp/internal/../Types.hpp:42:22: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< int(curl_infotype, char *, size_t) > DebugFunctionFunctor;
^
include/curlpp/internal/../Types.hpp:43:22: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< CURLcode(void *) > SslCtxFunctionFunctor;
^
include/curlpp/internal/../Types.hpp:44:15: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function< int(double, double, double, double)> ProgressFunctionFunctor;
^
In file included from include/curlpp/Easy.hpp:28:0,
from examples/example12.cpp:35:
include/curlpp/internal/CurlHandle.hpp:57:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<CurlHandle> clone() const;
^
include/curlpp/internal/CurlHandle.hpp:107:39: error: ‘curlpp::types::WriteFunctionFunctor’ has not been declared
void setWriteFunctor(curlpp::types::WriteFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:115:40: error: ‘curlpp::types::WriteFunctionFunctor’ has not been declared
void setHeaderFunctor(curlpp::types::WriteFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:123:38: error: ‘curlpp::types::ReadFunctionFunctor’ has not been declared
void setReadFunctor(curlpp::types::ReadFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:134:42: error: ‘curlpp::types::ProgressFunctionFunctor’ has not been declared
void setProgressFunctor(curlpp::types::ProgressFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:142:39: error: ‘curlpp::types::DebugFunctionFunctor’ has not been declared
void setDebugFunctor(curlpp::types::DebugFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:150:40: error: ‘curlpp::types::SslCtxFunctionFunctor’ has not been declared
void setSslCtxFunctor(curlpp::types::SslCtxFunctionFunctor functor)
^
include/curlpp/internal/CurlHandle.hpp:182:18: error: ‘WriteFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::WriteFunctionFunctor mWriteFunctor;
^
include/curlpp/internal/CurlHandle.hpp:183:18: error: ‘WriteFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::WriteFunctionFunctor mHeaderFunctor;
^
include/curlpp/internal/CurlHandle.hpp:184:18: error: ‘ReadFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::ReadFunctionFunctor mReadFunctor;
^
include/curlpp/internal/CurlHandle.hpp:185:18: error: ‘ProgressFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::ProgressFunctionFunctor mProgressFunctor;
^
include/curlpp/internal/CurlHandle.hpp:186:18: error: ‘DebugFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::DebugFunctionFunctor mDebugFunctor;
^
include/curlpp/internal/CurlHandle.hpp:187:18: error: ‘SslCtxFunctionFunctor’ in namespace ‘curlpp::types’ does not name a type
curlpp::types::SslCtxFunctionFunctor mSslFunctor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setWriteFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:109:4: error: ‘mWriteFunctor’ was not declared in this scope
mWriteFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setHeaderFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:117:4: error: ‘mHeaderFunctor’ was not declared in this scope
mHeaderFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setReadFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:125:4: error: ‘mReadFunctor’ was not declared in this scope
mReadFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setProgressFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:136:4: error: ‘mProgressFunctor’ was not declared in this scope
mProgressFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setDebugFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:144:4: error: ‘mDebugFunctor’ was not declared in this scope
mDebugFunctor = functor;
^
include/curlpp/internal/CurlHandle.hpp: In member function ‘void curlpp::internal::CurlHandle::setSslCtxFunctor(int)’:
include/curlpp/internal/CurlHandle.hpp:152:4: error: ‘mSslFunctor’ was not declared in this scope
mSslFunctor = functor;
^
In file included from include/curlpp/Option.inl:27:0,
from include/curlpp/Option.hpp:251,
from include/curlpp/Easy.hpp:31,
from examples/example12.cpp:35:
include/curlpp/internal/OptionSetter.hpp: At global scope:
include/curlpp/internal/OptionSetter.hpp:125:21: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::WriteFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:125:21: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:126:38: error: template argument 1 is invalid
CURLOPT_WRITEFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:216:21: error: ‘ReadFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::ReadFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:216:21: error: ‘ReadFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:217:37: error: template argument 1 is invalid
CURLOPT_READFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:308:21: error: ‘ProgressFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::ProgressFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:308:21: error: ‘ProgressFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:309:41: error: template argument 1 is invalid
CURLOPT_PROGRESSFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:356:21: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::WriteFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:356:21: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:357:39: error: template argument 1 is invalid
CURLOPT_HEADERFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:405:21: error: ‘DebugFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::DebugFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:405:21: error: ‘DebugFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:406:38: error: template argument 1 is invalid
CURLOPT_DEBUGFUNCTION>
^
include/curlpp/internal/OptionSetter.hpp:453:21: error: ‘SslCtxFunctionFunctor’ is not a member of ‘curlpp::types’
class OptionSetter<curlpp::types::SslCtxFunctionFunctor,
^
include/curlpp/internal/OptionSetter.hpp:453:21: error: ‘SslCtxFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/internal/OptionSetter.hpp:454:41: error: template argument 1 is invalid
CURLOPT_SSL_CTX_FUNCTION>
^
In file included from examples/example12.cpp:35:0:
include/curlpp/Easy.hpp:58:23: error: expected ‘)’ before ‘<’ token
Easy(std::unique_ptr<internal::CurlHandle> handle);
^
include/curlpp/Easy.hpp:77:28: error: ‘std::unique_ptr’ has not been declared
virtual void setOpt(std::unique_ptr<OptionBase> option);
^
include/curlpp/Easy.hpp:77:38: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void setOpt(std::unique_ptr<OptionBase> option);
^
include/curlpp/Easy.hpp:153:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<internal::CurlHandle> mCurl;
^
include/curlpp/Easy.hpp: In member function ‘curlpp::internal::CurlHandle& curlpp::Easy::getCurlHandle()’:
include/curlpp/Easy.hpp:135:52: error: ‘mCurl’ was not declared in this scope
internal::CurlHandle & getCurlHandle() { return *mCurl; }
^
include/curlpp/Easy.hpp: In member function ‘const curlpp::internal::CurlHandle& curlpp::Easy::getCurlHandle() const’:
include/curlpp/Easy.hpp:136:64: error: ‘mCurl’ was not declared in this scope
const internal::CurlHandle & getCurlHandle() const { return *mCurl; }
^
In file included from include/curlpp/Easy.hpp:164:0,
from examples/example12.cpp:35:
include/curlpp/Easy.inl: In member function ‘void curlpp::Easy::getInfo(CURLINFO, T&) const’:
include/curlpp/Easy.inl:28:3: error: ‘mCurl’ was not declared in this scope
mCurl->getInfo(info, value);
^
In file included from examples/example12.cpp:36:0:
include/curlpp/Options.hpp: At global scope:
include/curlpp/Options.hpp:90:30: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::WriteFunctionFunctor, CURLOPT_WRITEFUNCTION>
^
include/curlpp/Options.hpp:90:30: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:90:88: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::WriteFunctionFunctor, CURLOPT_WRITEFUNCTION>
^
include/curlpp/Options.hpp:117:31: error: ‘ReadFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::ReadFunctionFunctor, CURLOPT_READFUNCTION>
^
include/curlpp/Options.hpp:117:31: error: ‘ReadFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:117:87: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::ReadFunctionFunctor, CURLOPT_READFUNCTION>
^
include/curlpp/Options.hpp:152:30: error: ‘ProgressFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::ProgressFunctionFunctor, CURLOPT_PROGRESSFUNCTION>
^
include/curlpp/Options.hpp:152:30: error: ‘ProgressFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:152:94: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::ProgressFunctionFunctor, CURLOPT_PROGRESSFUNCTION>
^
include/curlpp/Options.hpp:155:30: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::WriteFunctionFunctor, CURLOPT_HEADERFUNCTION>
^
include/curlpp/Options.hpp:155:30: error: ‘WriteFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:155:89: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::WriteFunctionFunctor, CURLOPT_HEADERFUNCTION>
^
include/curlpp/Options.hpp:158:30: error: ‘DebugFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::DebugFunctionFunctor, CURLOPT_DEBUGFUNCTION>
^
include/curlpp/Options.hpp:158:30: error: ‘DebugFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:158:88: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::DebugFunctionFunctor, CURLOPT_DEBUGFUNCTION>
^
include/curlpp/Options.hpp:161:30: error: ‘SslCtxFunctionFunctor’ is not a member of ‘curlpp::types’
typedef curlpp::OptionTrait<curlpp::types::SslCtxFunctionFunctor, CURLOPT_SSL_CTX_FUNCTION>
^
include/curlpp/Options.hpp:161:30: error: ‘SslCtxFunctionFunctor’ is not a member of ‘curlpp::types’
include/curlpp/Options.hpp:161:92: error: template argument 1 is invalid
typedef curlpp::OptionTrait<curlpp::types::SslCtxFunctionFunctor, CURLOPT_SSL_CTX_FUNCTION>
^
Is your c++ compiler compliant with c++11?