使用libmongoc-1.0编译C程序

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

我无法使用mongodb c驱动程序编译程序。我正在使用CodeBlocks IDE。

在Build options-> Other Compiler Options中,我有:pkg-config --libs --cflags libmongoc-1.0这将产生一个错误:mongoc.h,没有这样的文件或目录。

文档显示:$(pkg-config --libs --cflags libmongoc-1.0)如果放置在Build Options-> Other Compiler Options中,则会产生错误。错误:预期为“)”

请咨询。

c mongodb pkg-config
1个回答
0
投票

[我在另一篇文章中找到了答案,在这里:Problem installing Mongo C Driver on ubuntu 16.04

基本上,您还需要安装dev软件包,文档中没有提及。

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