View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009667 | libmicrohttpd | documentation | public | 2025-03-27 11:43 | 2025-03-27 11:47 |
Reporter | wiz | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 1.0.0 | ||||
Summary | 0009667: tutorial is outdated | ||||
Description | The tutorial at https://www.gnu.org/software/libmicrohttpd/tutorial.html seems to have last been updated in 2016. Much of the code in it doesn't compile since the HTTP handler function return value was changed from 'int' to 'MHD_Result' since then, leading to errors like this: error: invalid conversion from ‘int’ to ‘MHD_Result’ [-fpermissive] Please update the tutorial so the code compiles. Thank you! | ||||
Steps To Reproduce | Read the tutorial, try to run the code. | ||||
Tags | No tags attached. | ||||
|
Additionally, the example on the homepage doesn't compile either with -fpermissive: https://www.gnu.org/software/libmicrohttpd/ error: invalid conversion from ‘void*’ to ‘const char*’ [-fpermissive] 75 | const char * page = cls; | ^~~ | | | void* error: invalid conversion from ‘int’ to ‘MHD_Result’ [-fpermissive] 98 | return ret; | ^~~ | | | int |