Subject: Re: [Boost-build] [cygwin] How to use both gcc 3.x.x and gcc 4.x.x
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-02-21 01:19:57
On Thursday 19 February 2009 19:58:54 Beman Dawes wrote:
> Cygwin ships both GCC's 3.x.x and 4.x.x series of compilers. You have to
> separately install both with the Cygwin installer. The 4.x.x series is
> named "gcc4-core" and "gcc4-c++", and they appear lower down in the list
> of packages so are easy to miss.
> To use both with Boost.Build, your user-config.jam file needs to include:
> using gcc ;
> using gcc : 4 : g++-4 ;
> It took some experimentation to get that exactly right;
> specifying "using gcc : 4 : gcc-4 ;" resulted in the linker not finding
> the standard library lib files,
I'd say that documentation at:
say that you should specify the command to do C++ compilation. Do you have any suggestions
how that can be clarified further?
> while specifying a full path to g++-4
> resulted in the compiler not finding the standard library include files.
Hmm, this sounds like a broken install, somehow. Do things work if you run compiler with the
same full path to compile a standalone C++ program? Does it matter if you use cygwin-style
or windows-style absolute path?
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