Boost logo

Boost-Build :

Subject: [Boost-build] How to specifiy multiple gcc compilers using windows 8.1
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2015-06-04 08:20:08


I am trying to specify multiple version of GCC compilers in my user-config like this

using gcc
  : # version
  4.8.1
  : # compiler exe location
  "C:\Program Files\mingw-builds\x64-4.8.1-win32-seh-rev5\mingw64\bin\g++.exe"
  : # options
 ;

using gcc
  : # version
  4.9.1
  : # compiler exe location
  "C:\Program Files\mingw-w64\x86_64-4.9.1-win32-seh-rt_v3-rev1\mingw64\bin\g++.exe"
  : # options
 ;

trying to follow the examples at

http://www.boost.org/build/doc/html/bbv2/overview/configuration.html

I've tried using "" around the file specification and using backslash

warning: toolset gcc initialization:
warning: can not find user-provided command 'C:Program Filesmingw-buildsx64-4.8.1-win32-seh-rev5ming
w64bing++.exe'
warning: initialized from C:\Users\Paul\user-config.jam:76
I:/modular-boost/tools/build/src/tools\gcc.jam:83: in gcc.init from module gcc
error: toolset gcc initialization:
error: provided command 'C:Program Filesmingw-buildsx64-4.8.1-win32-seh-rev5mingw64bing++.exe' not f
ound
error: initialized from C:\Users\Paul\user-config.jam:76

or forward slash

'C:/Program' is not recognized as an internal or external command,
operable program or batch file.
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.

It would appear that bjam/b2 is not dealing with the space in the filename? (despite the quotes)

A 4.8.1 version is found by default.

notice: will use 'C:/Program Files/mingw-builds/x64-4.8.1-win32-seh-rev5/mingw64/bin/g++.exe' for gc
c, condition <toolset>gcc-4.8.1

notice: using gcc libraries :: <toolset>gcc-4.8.1 :: C:/Program Files/mingw-builds/x64-4.8.1-win32-s
eh-rev5/mingw64/bin C:/Program Files/mingw-builds/x64-4.8.1-win32-seh-rev5/mingw64/lib C:/Program Fi
les/mingw-builds/x64-4.8.1-win32-seh-rev5/mingw64/lib32 C:/Program Files/mingw-builds/x64-4.8.1-win3
2-seh-rev5/mingw64/lib64

How can I get all three versions of gcc available?

Thanks

Paul

---
Paul A. Bristow
Prizet Farmhouse
Kendal UK LA8 8AB
+44 (0) 1539 561830

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk