orca-zhang / influxdb-cpp

💜 C++ client for InfluxDB.
MIT License
163 stars 83 forks source link

Compilation error #17

Closed m-peko closed 5 years ago

m-peko commented 5 years ago

Hi there,

I am using your header file but I get compilation errors like this:

... influxdb.hpp:175: multiple definition of `influxdb_cpp::detail::inner::url_encode(std::cxx11::basic_string<char, std::char_traits<char, std::allocator >&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)'

related to functions void inner::url_encode(std::string& out, const std::string& src); and int inner::http_request(const char* method, const char* uri, const std::string& querystring, const std::string& body, const server_info& si, std::string* resp); not being declared as inline.

I can create a merge request with this change if you agree.

Thanks and best regards