Closed dancesWithCycles closed 1 year ago
Hi, @dancesWithCycles, I have no affiliation to this library but have been following it recently. I am also not any kind of a web server expert.
The library doesn't look to be actively maintained. The examples are for civetweb which libhttp is forked from. None of them work, and fixing them would require updating the Makefiles to find libhttp.a
instead of libcivetweb.a
, as well as repairing many other problems. For example, if you've built libhttp.a
using the Makefile in the project root, it gets deleted by the hello
Makefile. Fixing this properly would require fixing the main project Makefile too - you may notice that make lib
, make help
etc options don't work.
Additionally the API is changed from civetweb and you would need to update the .c
file as well (which still has the #include "civetweb.h"
directive). For example, in hello.c
the struct httplib_connection
type has been renamed to struct lh_con_t
. There are more things like this that need updating.
The actual httplib.a
library does seem to build correctly, and there may be merit in getting everything working again and subsequently updating the repo as a learning exercise. Alternatively you might look at civetweb or mongoose, but note the licensing restrictions (hence the initial reason for httplib
). Good luck!
Hi @Robin-Wardle , Thank you so much for the heads-up and clarification. Appreciate! Cheers!
Hi folks, Thank you so much for providing this repository. I am wondering why the following instructions do not result in a successful build.
Did anything change in the meantime that broke this 'hello' example?
I am appreciating any hint making me able to solve this issue. Cheers!