Can't compile a Crow sample - boost/optional.hpp: No such file or directory
You need to install Boost, for Debian that would be apt install libboost-dev
.
boost/beast/core.hpp: There is no such file or directory
According to the documentation,
https://www.boost.org/doc/libs/1_66_0/
Beast
Portable HTTP, WebSocket, and network operations using only C++11 and Boost.Asio
...
First Release 1.66.0
you need to upgrade to at least 1.66.0
Edit
In practice, you have a few options
- Upgrade ubuntu release. Yes, some people consider it a bit risky and it may result in the necessity of reinstalling the system.
- Remove the boost package and, instead, install boost manually, from the sources. This is not difficult, and is well-documented.
I don't use ubuntu and I can't help you more. I remember I once had to install a newer version of boost then the one I had in my package system and it was not a big problem. Also, beast is a header-only library, so you'll even won't have to compile (this part of boost, but beast may depend on other parts of the library, that have to be compiled).
I'll reiterate: installing boost from sources is not that difficult and certainly is safe for your system.
boost/thread.hpp: No such file or directory
I have now resolved it with the command mentioned by Botje but with sudo.
sudo apt install libboost-thread-dev
But I did not want to do through root. So I have refrained its usage. But now I did not find any other way. I would be glad to know if any other solution works
No such file or directory error while installing boost on Red Hat OS
Download the source of boost for the version you want.
https://www.boost.org/users/download/
Configure it using your home directory as the Prefix as described in
Installing Boost libraries to a custom directory in ~ (home)
Boost/Array.hpp: No such file or directory (On Visual Studio 2019)
So I was trying to build on a linux machine remotely (Crucial detail that I had missed out earlier), so I had to insert the path in the format -I "path", to the boost library on the linux machine. I made the mistake of downloading the boost files on the windows machine, and adding the path to the windows boost files instead.
Go to Properties, C/C++, Command Line (Additional Options), and then enter the path over there to the library on the linux machine.
For example: -I /usr/FileSystem/boost_1_72_0
Related Topics
Kernel Preemption While Holding Spinlock
Complete Password Field Scp Command on Linux
Getting Cache Details in Arm Processors - Linux
Linux Kill Process Using Timeout in Milliseconds
Replace a String in a File with Contents Copied from Another File
Errors While Trying to Build Gdb for Arm
Search Ip from a Text File in .Csv Log File, If Found Add New Column Next to It
Case Statement in a While Loop, Shell Scripting
How to Kill a Whole Process Tree with Perl
How to Put All Command Arguments in One Variable
Git Says Everything Up-To-Date
How to Open Include File 'Io.Mac' Assembly
Finding All Directories That Are World Readable
Phony Targets for Parallel Execution of Make
(Mac) Leave Core File Where The Executable Is Instead of /Cores