Coder Social home page Coder Social logo

Compiling issue on g++4.6.4 about cpr-example HOT 5 CLOSED

whoshuu avatar whoshuu commented on July 25, 2024
Compiling issue on g++4.6.4

from cpr-example.

Comments (5)

whoshuu avatar whoshuu commented on July 25, 2024

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.

suvirbhargav avatar suvirbhargav commented on July 25, 2024

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.

suvirbhargav avatar suvirbhargav commented on July 25, 2024

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.

whoshuu avatar whoshuu commented on July 25, 2024

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.

suvirbhargav avatar suvirbhargav commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.