Mosquitto.h不是这样的文件或目录

问题描述 投票:0回答:1

我正在使用github上的mosquitto库开发一个c ++项目。我试图在命令行上的Windows计算机上编译C ++;但是我一直在收到错误

致命错误:mosquitto.h:没有这样的文件或目录包含“mosquitto.h”

我在windows系统中安装了mosquitto库,下面是:

C:\ Program Files \ mosquitto \ devel \ mosquitto.h

为了从命令行编译cpp,我还需要做些什么吗?我如何告诉g ++ mosquitto.h文件的位置。所以我可以在命令行上编译

感谢您的帮助我是C ++的新手。

c++ file header include mosquitto
1个回答
0
投票

我设法解决了这个问题,我把mosquitto.h复制到了

C:\ cygwin64的\ usr \包括

然后,当我键入g ++ nameOfFile时,它编译

© www.soinside.com 2019 - 2024. All rights reserved.