Skip to content
Discussion options

You must be logged in to vote

I suggest you try one of the many examples in the examples directory, read and follow the tutorials, try modifying to get familiar with the environment, and read the docs for the functions you want to use
The compiler error message is clear, the second argument of mg_http_serve_dir() has to be a struct mg_http_message * and you are passing a void * without casting. The function docs explains you how to do that. C is different from C++.

BTW, you don't need to define MG_ARCH for Linux, it is detected automatically, just follow the examples.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants