Subject: Cygwin upgrade to GCC-3.2 broke my other GCC installations!
From: David Abrahams <[email-masked]>
To: [email-masked]
Date: Wed, 06 Nov 2002 19:53:12 -0500

I had configured, built, and installed various versions of GCC
--with-prefix=/usr/local/gcc-<version>, but now that I've allowed the
Cygwin installer to upgrade the default compiler to gcc-3.2, the
others are all broken (including my previous gcc-3.2
installation!). Here's an example of gcc-3.0.4 failing:

c:/cygnus/usr/local/gcc-3.0.4/bin/g++  -c -Wall -ftemplate-depth-100   -g -O0 -fno-inline    -I "c:\sandbox" -I "c:\sandbox\..\boost"  -o "bin\transform_iterator_test.test\gcc-3.0.4\debug\runtime-link-dynamic\transform_iterator_test.obj"  "transform_iterator_test.cpp" 

In file included from /usr/local/gcc-3.0.4/lib/gcc-lib/i686-pc-cygwin/3.0.4/include/g++/bits/fpos.h:40,
                 from /usr/local/gcc-3.0.4/lib/gcc-lib/i686-pc-cygwin/3.0.4/include/g++/bits/std_iosfwd.h:41,
                 from /usr/local/gcc-3.0.4/lib/gcc-lib/i686-pc-cygwin/3.0.4/include/g++/bits/std_ios.h:39,
                 from /usr/local/gcc-3.0.4/lib/gcc-lib/i686-pc-cygwin/3.0.4/include/g++/bits/std_ostream.h:39,
                 from /usr/local/gcc-3.0.4/lib/gcc-lib/i686-pc-cygwin/3.0.4/include/g++/bits/std_iostream.h:40,
                 from /usr/local/gcc-3.0.4/lib/gcc-lib/i686-pc-cygwin/3.0.4/include/g++/iostream:31,
                 from transform_iterator_test.cpp:15:
/usr/local/gcc-3.0.4/lib/gcc-lib/i686-pc-cygwin/3.0.4/include/g++/bits/std_cwchar.h:54: conflicting
   types for `typedef struct mbstate_t mbstate_t'
/usr/include/wchar.h:36: previous declaration as `typedef struct _mbstate_t 
   mbstate_t'

Does anyone know how I can repair things?

Thanks,
Dave

-- 
                    David Abrahams
[email-masked] * http://www.boost-consulting.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/