Git Product home page Git Product logo

Comments (10)

slipros avatar slipros commented on July 25, 2024 12

You need include pragma comment. This helps me

#pragma comment(lib, "ws2_32.lib")
#include "HTTPRequest.hpp"

from httprequest.

WaxieDLL avatar WaxieDLL commented on July 25, 2024

i have same issue too. its working with console application but whenever im trying to use it with imgui, im getting this error.

from httprequest.

SyntaxSnack avatar SyntaxSnack commented on July 25, 2024

#pragma comment(lib, "ws2_32.lib")

This worked, thank you :) Should be in readme / docs, or otherwise it's confusing.

from httprequest.

stefanasandei avatar stefanasandei commented on July 25, 2024

I still have problems with compiling. I'm using MinGW g++.
Here is the command: g++ src/main.cpp -o app.exe -Iinclude

from httprequest.

ThenTech avatar ThenTech commented on July 25, 2024

I still have problems with compiling. I'm using MinGW g++.
Here is the command: g++ src/main.cpp -o app.exe -Iinclude

MSVC will link the socket library with the above pragma, but for gcc you need to link it yourself with -lws2_32.

from httprequest.

tlhcelik avatar tlhcelik commented on July 25, 2024

#pragma comment(lib, "ws2_32.lib")

it's working.

Visual Studio 2017

from httprequest.

azzlak avatar azzlak commented on July 25, 2024

add
#define WIN32_LEAN_AND_MEAN
#include "HTTPRequest.hpp"
#pragma comment(lib, "Ws2_32.lib")

from httprequest.

GeTechG avatar GeTechG commented on July 25, 2024

It didn't work for me until I put it in a separate cpp, the problem is that it conflicted with my already loaded headers.

from httprequest.

F0RQU1N avatar F0RQU1N commented on July 25, 2024

add #define WIN32_LEAN_AND_MEAN #include "HTTPRequest.hpp" #pragma comment(lib, "Ws2_32.lib")

thats work only on x86

from httprequest.

azzlak avatar azzlak commented on July 25, 2024

thats work only on x86

It worked on my 64 Bit CPU

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.