0

I'm following the Mongoose Embedding Guide and I get the error:

error: ‘mg_create_server’ was not declared in this scope
     struct mg_server *server = mg_create_server(NULL, NULL);

This is copied verbatim from the embedding guide.

Looking in mongoose.h, there is no mg_create_server anywhere to be found! Neither in that latest version, nor 5.1, nor 4.1 (from the google code archives).

What am I missing here?

4

1 回答 1

1

mg_create_server显然存在于版本 5.6中。版本 6.0(最新)更改了 API,他们没有更新嵌入指南。是一个带有最新版本 Mongoose 的 RESTful 服务器示例。是最新的 API 文档。

于 2015-10-05T19:45:09.190 回答