如何解决:无法打开包含文件 nng/nng.h 的问题?
发布于 作者:苏南大叔 来源:程序如此灵动~

还是同一个开源cpp
项目,接下来的问题是:无法找到nng/nng.h
的问题。同样的操作,找到nng
的开源仓库,然后把include
目录下面的文件,放到项目下的合适位置即可。
苏南大叔的“程序如此灵动”博客,记录苏南大叔的代码编程经验文章。测试环境:win10
,vs2019
,nng@1.12.0
。
报错截图
报错内容是:
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C1083 无法打开包括文件: “nng/nng.h”: No such file or directory spy
截图如下:
仓库地址
官方介绍文字:
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.
解决方案
把nng
的include
目录下面的文件,移动到项目下对应位置即可。
相关文章
结语
有了石头好过河。更多文章:


