Git Product home page Git Product logo

Comments (7)

quantumcore avatar quantumcore commented on July 4, 2024

Same error over here.

HTTPRequest.hpp: In member function 'http::Response http::Request::send(const string&, const string&, const std::vector<std::__cxx11::basic_string<char> >&)':
HTTPRequest.hpp:398:72: error: 'getaddrinfo' was not declared in this scope    
             if (getaddrinfo(domain.c_str(), port.c_str(), &hints, &info) != 0)
                                                                        ^
HTTPRequest.hpp:401:49: error: 'freeaddrinfo' was not declared in this scope
             std::unique_ptr<addrinfo, decltype(&freeaddrinfo)> addressInfo(info, freeaddrinfo);
                                                 ^~~~~~~~~~~~
HTTPRequest.hpp:401:62: error: template argument 2 is invalid
             std::unique_ptr<addrinfo, decltype(&freeaddrinfo)> addressInfo(info, freeaddrinfo);
                                                              ^
HTTPRequest.hpp:401:94: error: expression list treated as compound expression in initializer [-fpermissive]
             std::unique_ptr<addrinfo, decltype(&freeaddrinfo)> addressInfo(info, freeaddrinfo);
                                                                                              ^
HTTPRequest.hpp:406:46: error: base operand of '->' is not a pointer
             if (::connect(socket, addressInfo->ai_addr, static_cast<socklen_t>(addressInfo->ai_addrlen)) < 0)
                                              ^~
HTTPRequest.hpp:406:91: error: base operand of '->' is not a pointer
             if (::connect(socket, addressInfo->ai_addr, static_cast<socklen_t>(addressInfo->ai_addrlen)) < 0)
                                                                                           ^~

from httprequest.

elnormous avatar elnormous commented on July 4, 2024

What compiler/OS/WindowsSDK/C++ version you use?

from httprequest.

quantumcore avatar quantumcore commented on July 4, 2024

@elnormous I'm using GCC, C++11.

from httprequest.

elnormous avatar elnormous commented on July 4, 2024

I can not reproduce this with any version of gcc. What version of gcc are you using? What operating system?

from httprequest.

quantumcore avatar quantumcore commented on July 4, 2024

GCC version 6.3.0, Operating System Windows.
Compiled : g++ main.cpp

from httprequest.

elnormous avatar elnormous commented on July 4, 2024

Are you using cygwin on mingw?

from httprequest.

elnormous avatar elnormous commented on July 4, 2024

Ok, this is a problem with MinGW. Fixed it in 14b3beb

from httprequest.

Related Issues (20)

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.