Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: boost/scoped_ptr.hpp: No such file or directory while using libkml

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

What is "boost/scoped_ptr.hpp"? I try finding this file in terminal

locate boost/scoped_ptr.hpp 

but there's nothing.

like image 313
GV vo Avatar asked Oct 23 '25 08:10

GV vo


1 Answers

You need to install the boost libraries from http://www.boost.org/

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 Boost On Windows this may help: http://boost.teeks99.com/

like image 133
hogliux Avatar answered Oct 24 '25 20:10

hogliux



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!