efficiencyIsBliss
efficiencyIsBliss

Reputation: 3093

g++ cannot find boost header file

I just installed Boost 1.52.0, and I'm trying to use the Boost logging library (which I believe is now integrated into Boost).

I'm using the /boost/log/trivial.hpp file, and I'm trying to log messages as described here. However, the compiler is unable to find the header file, and gives me the following error:

error: boost/log/trivial.hpp: No such file or directory

This is after my modifying the compiler and linker include paths.

My compile command is as follows:

g++ -O2 -I/Users/bar/Downloads/boost_1_52_0 -L/Users/bar/Downloads/boost_1_52_0/stage/lib foo.cpp

Any ideas as to what I should do?

Upvotes: 1

Views: 1389

Answers (1)

Jesse Good
Jesse Good

Reputation: 52365

I just installed Boost 1.52.0, and I'm trying to use the Boost logging library (which I believe is now integrated into Boost).

Nope, it hasn't been integrated into boost yet. You can download it from here and build it though. Boost 1.52 does not include any new libraries, it was an update for bug fixes, etc.

Also, you will need to link boost_log and boost_system (perhaps others too).

Upvotes: 1

Related Questions