bjam is the old name of the engine used by Boost.Build The new name is b2
Questions tagged [bjam]
263 questions
10
votes
1 answer
How to compile boost with -g debug flag?
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.

John Rocha
- 1,656
- 3
- 19
- 30
10
votes
3 answers
Trying to build Boost: I cannot get bjam
I would like to build boost using two different compilers, MinGW and Visual C++ 2010 Express, using bjam:
bjam toolset=gcc,msvc variant=release link=static,shared threading=multi install
The problem is that I do not have bjam. I could not find it…

Pietro M
- 1,905
- 3
- 20
- 24
10
votes
3 answers
How do I build boost with Visual Studio 2008 when I have multiple Visual Studio versions installed?
I know how to build boost with the latest visual studio on my machine (this question, for example)
However, I need to build the libs for Visual Studio 2008 (vc9)
I tried using toolset=vc9 but I get problems/no success.
How can I build the libs for…

Tim
- 20,184
- 24
- 117
- 214
9
votes
3 answers
Boost bjam versus GNU make
I am a newbie to Boost C++ libraries. I was wondering if there are any advantages of Boost bjam over GNU make? And what are the cons if I use make for building C++ code utilizing Boost.Python libraries?

Aamir
- 2,943
- 5
- 26
- 28
9
votes
2 answers
#define in Boost Jamfiles
This is my project structure:
MainFolder
- Jamroot.jam
- AnotherFolder
- libFolder
- Jamfile.jam
- cpp files
I have an #ifdef in one of the cpp files.
Example:
#ifdef SOMEVALUE
Code
#endif
I need to compile the cpp…

Rajs123
- 663
- 13
- 30
9
votes
2 answers
Using boost.python with make instead of bjam
I'm just trying to compile the "hello world" example of boost.python WITHOUT using all the bjam magic. My boost.python installation is working, I did succesfully build the example with bjam and passed the test suite.
Now for my project I need to use…

Philipp
- 387
- 2
- 5
- 8
9
votes
1 answer
Static Compile of Thread Example
I compiled the Boost C++ libraries as follows:
bjam install variant=release link=static threading=multi runtime-link=static
No errors. Then I compiled the following source:
#include
#include
#define…

Dave Jarvis
- 30,436
- 41
- 178
- 315
8
votes
2 answers
Building a subset of boost libraries
I'm trying to build only a subset of boost libraries. For example, I have this code:
test.cpp:
#include
int main (){
return 0;
}
I then do
./bcp --scan test.cpp ~/dev/boost_compact/
So the dependencies files are copied to…

kunigami
- 3,046
- 4
- 26
- 42
8
votes
1 answer
BJam not compiling boost libraries with '-mt' tag when multi threading specified
I'm trying to compile boost v1.55 libraries for osx, with multi threading support. My user-config.jam configures the compiler as follows:
using clang : osx
: xcrun clang -arch i386 -arch x86_64 -stdlib=libstdc++ -mmacosx-version-min=10.9
;
And the…

MM.
- 4,224
- 5
- 37
- 74
8
votes
2 answers
Change boost.build jamfile for C++11 support?
I have been using boost.build or b2 for building a project. I am trying to add C++11 contructs like auto and begin but the standard invokation b2 release in the directory with the Jamfile does not recognize these.

Humble Debugger
- 4,439
- 11
- 39
- 56
8
votes
2 answers
fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_53.lib' - file ignored, no matter what i link
I have just bjamed boost and it seems like its still gonna refuse to work (I alread have tried and given up to make this library). What I did was, that I launched bjam.exe and I linked:
include directories: C:\ ... \boost_1_53_0
Library…

Tomáš Zato
- 50,171
- 52
- 268
- 778
8
votes
2 answers
Boost.Build/bjam and Qt
I'm trying to set up a Boost.Build .jamroot file for compiling a Qt 4.8 project, but it seems to be ignoring the.ui files and the .cpp files that should be moc:ed. I tried poking around inside qt4.jam, adding some more ECHO:s, but I'm not sure where…

tacospice
- 647
- 5
- 20
7
votes
3 answers
Help compiling and using boost c++ libraries
I am working on a C++ project where I'd like to use boost's serialization libraries. I downloaded and installed the latest boost libraries from boost's home page.
When I tried to compile and run the one of boost's demo serialization examples, I got…

Swaraj
- 1,235
- 1
- 13
- 22
7
votes
1 answer
Boost 1.57.0 bootstrap.bat not working for Visual Studio .NET 2003
On a dev machine Vista SP1 with only Visual Studio .NET 2003 SP1 installed
- with boost 1.44.0 I have no problem to generate b2.exe and bjam.exe using bootstrap.bat
- with boost 1.57.0 I get this error message when running bootstrap.bat :
…

Manuel Rozier
- 677
- 5
- 9
7
votes
1 answer
how to determine value of cxxflags in bjam? Or append to it?
I need to add to compiler flags using bjam. So either I need a way to append to the existing flags -- like CXXFLAGS+=whatever using gmake -- or I need to know the currently-used value of cxxflags so I can replace it with my additions.
As usual, the…

c-urchin
- 4,344
- 6
- 28
- 30