我们相信:世界是美好的,你是我也是。平行空间的世界里面,不同版本的生活也在继续...

还是同一个开源cpp项目,接下来的问题是:无法找到nng/nng.h的问题。同样的操作,找到nng的开源仓库,然后把include目录下面的文件,放到项目下的合适位置即可。

苏南大叔:如何解决:无法打开包含文件 nng/nng.h 的问题? - nng无法找到
如何解决:无法打开包含文件 nng/nng.h 的问题?(图3-1)

苏南大叔的“平行空间笔记本”博客,记录苏南大叔的代码编程经验文章。测试环境:win10vs2019nng@1.12.0

报错截图

报错内容是:

严重性    代码    说明    项目    文件    行    禁止显示状态
错误    C1083    无法打开包括文件: “nng/nng.h”: No such file or directory    spy

截图如下:

苏南大叔:如何解决:无法打开包含文件 nng/nng.h 的问题? - nng报错截图
如何解决:无法打开包含文件 nng/nng.h 的问题?(图3-2)

仓库地址

官方介绍文字:

NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery. The API frees the programmer from worrying about details like connection management, retries, and other common considerations, so that they can focus on the application instead of the plumbing.

NNG is implemented in C, requiring only C99 and CMake to build. It can be built as a shared or a static library, and is readily embeddable. It is also designed to be easy to port to new platforms if your platform is not already supported.

解决方案

nnginclude目录下面的文件,移动到项目下对应位置即可。

苏南大叔:如何解决:无法打开包含文件 nng/nng.h 的问题? - nng文件没有办法找到
如何解决:无法打开包含文件 nng/nng.h 的问题?(图3-3)

相关文章

结语

有了石头好过河。更多文章:

如果本文对您有帮助,或者节约了您的时间,欢迎打赏瓶饮料,建立下友谊关系。
本博客不欢迎:各种镜像采集行为。请尊重原创文章内容,转载请保留作者链接。

 【福利】 腾讯云最新爆款活动!1核2G云服务器首年50元!

 【源码】本文代码片段及相关软件,请点此获取更多信息

 【绝密】秘籍文章入口,仅传授于有缘之人   cpp