Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling on Windows #67

Open
MyTDT-Mysoft opened this issue Aug 16, 2020 · 7 comments
Open

Compiling on Windows #67

MyTDT-Mysoft opened this issue Aug 16, 2020 · 7 comments
Assignees

Comments

@MyTDT-Mysoft
Copy link

so i'm compiling on windows using mingw 8.1 and regular cmd.exe
compiling works, altough "clean" uses linux specific stuff that fails to cleanup properly nonetheless it compiles

however i noticed a few things when compiling the simplest make lib/slib forms:

  1. it requires libpthread-1.dll just for clock_gettime. so i added a clock_gettime.c to sources on windows, so that libpthread is not included if used just for that
  2. its requiring a mingw gcc dll for div??? when generating the .dll as dependency that i removed by adding -static-libgcc to compile options.. so now just a warning left..
@datrilla
Copy link

I used part of code in window vsstudio2017 it could fit ,I didnt USE MINGW in Win.

@bugproof
Copy link

whats the point of using this possibly with less features library instead of libcurl

@MyTDT-Mysoft
Copy link
Author

MyTDT-Mysoft commented Aug 17, 2020

whats the point of drinking pepsi when we already have coca-cola? anyway i dunno libcurl is fine in most cases, but who knows its good to have alternatives, maybe libcurl becomes a bloated monster, that fails to compile for XP or certain embedded system because it may end too advanced features or being end harder to compile for certain toolchain, or whatever, so its good to have an alternative, specially one that is in C as well :) not to mention if theres some zero day acting on libcurl it may not affect this one

@bugproof
Copy link

bugproof commented Aug 17, 2020

@MyTDT-Mysoft that's true but also maintenance is an important factor. Last commit in this repo was 12 months ago, so if something breaks or there's zero day acting on libhttp you are on your own because nobody maintains it anymore and the author simply abandoned the project. Last commit in libcurl repo was 4 hours ago. But it's also true that there aren't many HTTP clients for C but I think it's good because having too many libraries is overwhelming.

@lammertb
Copy link
Owner

Nice conversation here 😃 This project is not abandoned, and the source code is maintained, although not all changes are pushed straight away to the git repository.

Mingw on Windows has not been tested by me, so it may require some adaptations before it compiles smoothly.

@lammertb
Copy link
Owner

lammertb commented Jun 9, 2021

Update on this: MinGW will be supported soon.

@lammertb lammertb self-assigned this Jul 22, 2021
@laoshaw
Copy link

laoshaw commented Jul 20, 2022

whats the point of using this possibly with less features library instead of libcurl

libcurl is a client-side httplib, this is a server-side httplib which is quite different, am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants