cookiedough
cookiedough

Reputation: 3832

fatal error: boost/filesystem.hpp: No such file or directory

I am trying to run the boost::python tutorial in CLion on Ubuntu. I have installed boost and ran sudo apt-get install libboost-dev, however, the following still throws the library-not-found error:

#include <boost/filesystem.hpp> #include <boost/filesystem/path.hpp>

main.cpp:2:32: fatal error: boost/filesystem.hpp: No such file or directory

I have added the boost/ folder to my project directory, but the import is still not working. Any suggestions?

Upvotes: 2

Views: 16228

Answers (1)

Audrius Meškauskas
Audrius Meškauskas

Reputation: 21748

I have applied the proposal of @ricco19:

apt-get install libboost-filesystem-dev

This solved the problem for me.

Upvotes: 13

Related Questions