猫鼬没有mg_create_server功能? [英] Mongoose has no mg_create_server function?

查看:255
本文介绍了猫鼬没有mg_create_server功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继猫鼬嵌入指南和我得到的错误:

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.

展望 mongoose.h ,的没有 mg_create_server 地方?被发现!无论是在最新的版本,也没有 5.1 ,也没有的 4.1 (从谷歌code存档)。

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).

我是什么在这里失踪?

推荐答案

mg_create_server 显然存在的 5.6版。 6.0版(最新的)改变了API,他们没有更新自己的嵌入指南。 这里是与最新的一个RESTful服务器的示例猫鼬版的。 这里是最新的API文档。

mg_create_server apparently exists in version 5.6. Version 6.0 (the latest) has changed the API, and they didn't update their embedding guide. Here is an example of a RESTful server with the latest version of Mongoose. Here are the latest API docs.

这篇关于猫鼬没有mg_create_server功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆