|
Boost-Build : |
Subject: Re: [Boost-build] RE [cygwin] How to use both gcc 3.x.x and gcc 4.x.x
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-03-14 14:27:40
I've got gcc 4.3.2 on my cygwin system and want to use boost build with it.
when I use --toolset=gcc
my stystem uses gcc 3.4.4 which I also have
when I use --toolset=gcc-4.3.2 or --toolset=gcc-4,
I get a message at the top of the bjam.log which says
'g++' is not recognized as an internal or external command,
operable program or batch file.
'g++' is not recognized as an internal or external command,
I can invoke g++-4 from my shell:
$ g++-4 -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with:
/gnu/gcc/release/gcc4-4.3.2-1/src/gcc-4.3.2/configure --srcdir=
/gnu/gcc/release/gcc4-4.3.2-1/src/gcc-4.3.2 --prefix=/usr --exec-prefix=/usr
--b
indir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/sbin --localstatedir=/var
-
-sysconfdir=/etc --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/sh
are/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-
specific-runtime-libs --with-slibdir=/usr/bin --libexecdir=/usr/lib --enable-sta
tic --enable-shared --enable-shared-libgcc --enable-__cxa_atexit --with-gnu-ld
-
-with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c+
+,fortran,java,objc,obj-c++ --disable-symvers --enable-libjava --program-suffix=
-4
Thread model: single
gcc version 4.3.2 20080827 (alpha-testing) 1 (GCC)
$
my user-config.jam looks like:
# Boost.Build Configuration
# Automatically generated by Boost configure
# Compiler configuration
using msvc ;
using borland ;
using gcc ;
using gcc : 4 : g++-4 ;
using como-win ;
using stlport ;
# Python configuration
using python : 2.5 : /usr ;
What do I have to do to use gcc 4.3.2 with my boost build system?
Robert Ramey
frederic.bron_at_[hidden] 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 ;
>>
>
> I am using the following:
> using gcc : cygwin_3.4.4 : /usr/bin/g++ :
> <compileflags>-DBOOST_POSIX_API <compileflags>-DBOOST_POSIX_PATH ;
> using gcc : cygwin_4.3.2 : /usr/bin/g++-4 :
> <compileflags>-DBOOST_POSIX_API <compileflags>-DBOOST_POSIX_PATH ;
>
> and I try to run the regression tests regularly (bronf1 on trunk).
> However, I do not know if it is of any help.
>
> F. Bron
>
> Avis :
> Ce message et toute pièce jointe sont la propriété d'Alcan et sont
> destinés seulement aux personnes ou à l'entité à qui le message est
> adressé. Si vous avez reçu ce message par erreur, veuillez le
> détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas
> le destinataire du message, vous n'êtes pas autorisé à utiliser, à
> copier ou à divulguer le contenu du message ou ses pièces jointes
> en tout ou en partie.
>
> Notice:
> This message and any attachments are the property of Alcan and are
> intended solely for the named recipients or entity to whom this
> message is addressed. If you have received this message in error
> please inform the sender via e-mail and destroy the message. If you
> are not the intended recipient you are not allowed to use, copy or
> disclose the contents or attachments in whole or in part.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
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