Error in boost format

4.9k Views Asked by At

When I try to compile in cygwin there are problem like this:

fatal error: boost/format.hpp: No such file or directory #include <boost/format.hpp>

How I fix this problem, someone please help me...

2

There are 2 best solutions below

3
Alexandru Vasiliu On BEST ANSWER

You can get this error for 2 reasons:

  1. You forgot to add #include <boost/format.hpp> in your file.

  2. You don't have boost installed. Installation guide here.

0
anko_fl On

You can try to erase /format.hpp from <boost/format.hpp>, then add "/", i.e., <boost/>, then start typing "form" and select format.hpp from the drop-down list.

It looks like this will force Visual Studio to find the necessary dependencies again, and the error has disappeared for me.

screenshot