问题描述
我正在开发使用Google Map数据库的软件.我搜索了谷歌,发现用C ++编写的库可以做到这一点-libkml.我已经在此网站,但是当我使用以下命令编译时:g++ main.cpp -lkml
,它发生了错误:
I am developing a software which uses Google Map database. I searched google and I found a library in C++ can do that - libkml. I've downloaded some examples code in this website, but when I compiled with this command: g++ main.cpp -lkml
, it occured an error:
fatal error: boost/scoped_ptr.hpp: No such file or directory
什么是"boost/scoped_ptr.hpp"?我尝试在终端
What is "boost/scoped_ptr.hpp"? I try finding this file in terminal
locate boost/scoped_ptr.hpp
但是什么都没有.
推荐答案
您需要从 http:安装增强库. //www.boost.org/
取决于您的操作系统,您可以安装预构建的解决方案.例如,在Ubuntu上,您可以执行sudo apt-get install libboost-all-dev
.在Mac上,请参见以下线程 Boost:用于Boost的MacOSX二进制文件在Windows上,这可能会有所帮助: http://boost.teeks99.com/
Depending on your OS there will be pre-built solutions that you can install. For example on Ubuntu you can do sudo apt-get install libboost-all-dev
. On Mac see this thread Boost: MacOSX binaries for BoostOn Windows this may help: http://boost.teeks99.com/
这篇关于错误:boost/scoped_ptr.hpp:使用libkml时没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!