I'm using Raspberry Pi 3B+. I'm trying to compile a rather massive C++ package given to me from somewhere else. However make
fails compiling. It cannot find boost/asio.hpp
. I simplified the problem into this minimal version. This is my helloboost.c
#include <memory>
#include <string>
#include <vector>
#include <utility>
#include <boost/asio.hpp>
int main() {
printf("hello boost\n");
return(0);
}
If I comment out the #include <boost/asio.hpp>
line it compiles with g++ helloboost.c
just fine and works, but with this version the following error appears:
pi@raspberrypi:~/Documents/tmp_tests $ g++ helloboost.c
helloboost.c:5:26: fatal error: boost/asio.hpp: No such file or directory
#include <boost/asio.hpp>
^
compilation terminated.
Apparently it does find the other include files. Here is a similar question but it has not been answered. A comment there suggests making it a "SSCCE", I don't know what that means. Any help is appreciated.
sudo apt-get install boost
does not work.boost-devel
orlibboost-dev
.libboost-dev
and it worked, thank you! Please make this into an answer so I can mark it as the correct one.