Comments (5)
Thanks for the report. This actually might be rectifiable without much finagling, I'll take a look at it some time this week in the library repo.
from cpr-example.
Doesn't look so doable on 4.6 compiler. The complete c++11 support was introduced in gcc from 4.7. So, i changed to 4.7 and it compiles fine.
cpr-example/build$ g++ --version
g++ (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~/Desktop/curl/cpr-example/build$ ./example
{
"args": {},
"headers": {
"Accept": "*/*",
"Host": "httpbin.org",
"User-Agent": "curl/7.22.0"
For the reported error above, i changed the string initialization to const std::string& content_type only. With 4.6 having experimental support, it leads to tons of other errors all over even after fixing the above one.
from cpr-example.
It could be that not many developers are using any compiler below than 4.7. Sorry for the accidental open/close button hit.
from cpr-example.
I'm gonna set up an automatic build of this example project under gcc 4.6, and have it be an allowable failure. That'll provide documented insight into the gap between this and 4.7. If I can manage that, should we close this issue?
from cpr-example.
yes, sounds good.
On Sat, Nov 7, 2015 at 8:39 PM, Huu Nguyen [email protected] wrote:
I'm gonna set up an automatic build of this example project under gcc 4.6,
and have it be an allowable failure. That'll provide documented insight
into the gap between this and 4.7. If I can manage that, should we close
this issue?—
Reply to this email directly or view it on GitHub
#2 (comment).
from cpr-example.
Related Issues (14)
- Automatically follow the master branch of cpr
- fatal: No url found for submodule path 'opt/cpr' in .gitmodules HOT 1
- Cannot update submodules.
- Unable to configure CMake HOT 4
- Error while make process
- Fresh build on windows failed
- Fix appveyor build HOT 1
- No bug reporting option in README file HOT 2
- Example.cpp response 0 when making HTTPS GET to some other website HOT 2
- HTTPS uses in Linux HOT 1
- Error while building
- build as a submodule is complicated
- Error in building example
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpr-example.