1

I am learning C and C++ now and am trying to use the test Suite of Boost for TDD with Codeblocks.

After l a lot of Documentation reading, that didn´t help much, I found this:

Building boost 1.61.0 with MinGW 5.3.0

I did it almost the same way on my System (but I had to run it as admin, what irritated me a bit, otherwise I got an Access Denied message):

So blabla add a few environmetal variables... Then in the prompt, i did:

.\bootstrap.bat gcc .\install toolset=gcc --prefix=C:...\boost_1_63_0\tools\build\ (without the toolset set again I got the Warning:"No Toolsets are configured" and a bunch more)

Now I get:

notice: could not find main target files notice: assuming it is a name of file to create. notice: could not find main target (x86)\boost_1_63_0\ notice: assuming it is a name of file to create. don´t know how to make files don´t know how to make (x86)\boost_1_63_0\ ...found 2 targets... ...can't find 2 targets...

and the binary doesn't get built.

This is the end of the my knowledge... Anything important I missed?

Community
  • 1
  • 1
Saitama
  • 11
  • 1

1 Answers1

0

From the comments. Your main problem seems to have been you were trying to build and install boost into C:\Program Files (x86)\boost_1_63_0. Remember that Program Files is a UAC protected folder. It will require UAC elevation to write files to this location. See here for more info on UAC folder protection: What makes c:\Program Files UAC-protected?

A second problem is since your target path had a space in it you would have to quote the space when passing the command line parameters to build boost.

For both problems I recommend that instead of installing and building from C:\Program Files build from a different folder on your drive preferably one without spaces in the folder name.

Community
  • 1
  • 1
drescherjm
  • 10,365
  • 5
  • 44
  • 64