I'm a passionate polyglot software development engineer insterested in problem solvings.
panchatcharam / librest Goto Github PK
View Code? Open in Web Editor NEWA simple libraray for Restful services, implemented using C++, curl, jsonCPP, openssl
A simple libraray for Restful services, implemented using C++, curl, jsonCPP, openssl
End of search list.
GNU C++11 (Ubuntu 7.4.0-1ubuntu1~18.04.1) version 7.4.0 (x86_64-linux-gnu)
compiled by GNU C version 7.4.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 38816e3807cdcb3c59571e251bd6c090
In file included from /home/yomu/libRest/source/src/CurlHttpWrapper.cpp:9:0:
/home/yomu/libRest/source/src/CurlHttpWrapper.h:84:7: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<void(CURLcode, std::string)> LogError;
^~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.h:87:7: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<void(struct curl_slist )> FreeHeader;
^~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp: In constructor ‘CurlHttpWrapper::CurlHttpWrapper()’:
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:27:2: error: ‘LogError’ was not declared in this scope
LogError = [this](CURLcode errCode, std::string errStr)
^~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:27:2: note: suggested alternative: ‘perror’
LogError = [this](CURLcode errCode, std::string errStr)
^~~~~~~~
perror
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:38:2: error: ‘FreeHeader’ was not declared in this scope
FreeHeader = [this](struct curl_slist * headers)
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp: In member function ‘int CurlHttpWrapper::Post(const CurlHttpWrapper::payload&)’:
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:266:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:271:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:272:3: error: ‘LogError’ was not declared in this scope
LogError(res, std::string(errbuf));
^~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:272:3: note: suggested alternative: ‘perror’
LogError(res, std::string(errbuf));
^~~~~~~~
perror
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:277:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp: In member function ‘int CurlHttpWrapper::Put(const CurlHttpWrapper::payload&)’:
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:360:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:365:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:366:3: error: ‘LogError’ was not declared in this scope
LogError(res, std::string(errbuf));
^~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:366:3: note: suggested alternative: ‘perror’
LogError(res, std::string(errbuf));
^~~~~~~~
perror
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:371:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp: In member function ‘int CurlHttpWrapper::GetData(std::__cxx11::string, std::__cxx11::string&)’:
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:456:3: error: ‘LogError’ was not declared in this scope
LogError(res, std::string(errbuf));
^~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:456:3: note: suggested alternative: ‘perror’
LogError(res, std::string(errbuf));
^~~~~~~~
perror
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp: In member function ‘int CurlHttpWrapper::UpdateTLSInfo()’:
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:631:3: error: ‘LogError’ was not declared in this scope
LogError(res, std::string(errbuf));
^~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:631:3: note: suggested alternative: ‘perror’
LogError(res, std::string(errbuf));
^~~~~~~~
perror
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp: In member function ‘int CurlHttpWrapper::PostPollingData(std::__cxx11::string, const rest::RestData&)’:
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:709:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:714:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:715:3: error: ‘LogError’ was not declared in this scope
LogError(res, std::string(errbuf));
^~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:715:3: note: suggested alternative: ‘perror’
LogError(res, std::string(errbuf));
^~~~~~~~
perror
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:720:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp: In member function ‘curl_slist CurlHttpWrapper::addSecurityHeaders(int)’:
/home/yomu/libRest/source/src/CurlHttpWrapper.cpp:797:3: error: ‘FreeHeader’ was not declared in this scope
FreeHeader(headers);
^~~~~~~~~~
CMakeFiles/Rest.dir/build.make:62: recipe for target 'CMakeFiles/Rest.dir/CurlHttpWrapper.cpp.o' failed
make[2]: *** [CMakeFiles/Rest.dir/CurlHttpWrapper.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/Rest.dir/all' failed
make[1]: *** [CMakeFiles/Rest.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.