Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile boost with -g debug flag?

Tags:

c++

boost

bjam

jam

I want to recompile our boost library, but with the -g, debugging flag enabled. I've been reading and see that we build boost with jam. While I know make very well, jam has always eluded me and my frustration is mounting.

like image 436
John Rocha Avatar asked Mar 14 '12 20:03

John Rocha


People also ask

How do you compile a Boost?

To compile anything in Boost, you need a directory containing the boost/ subdirectory in your #include path. depending on your preference regarding the use of angle bracket includes. Don't be distracted by the doc/ subdirectory; it only contains a subset of the Boost documentation. Start with libs/index.

Can I build Boost with CMake?

That infrastructure does warn in their README that building Boost with CMake does not work yet and is not supported .

How do I use Boost in CPP project?

Go to Project properties → C/C++ → General → Additional Include Directories, and add a path to the boost library root (in my case C:\Program Files (x86)\Boost_1_53 ). Include a . hpp file in your sources, like #include <boost/lexical_cast/lexical_cast_old. hpp>

Is Boost built in C++?

Boost is a set of libraries for the C++ programming language that provides support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing. It contains 164 individual libraries (as of version 1.76).


1 Answers

Sorry. I know answering your own question is distasteful, but I was able to figure this out shortly after posting. the cxxflags and cflags properties are what I need to use, as outlined at: http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html under the PROPERTIES sectin.

like image 103
John Rocha Avatar answered Oct 18 '22 15:10

John Rocha