Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <20030502201330.44961.qmail@web21405.mail.yahoo.com>
Date: Sat, 3 May 2003 06:13:30 +1000 (EST)
From: =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001@yahoo.co.nz>
Subject: Re: g++ newer version
To: "Gerrit P. Haase" <gp@familiehaase.de>
Cc: cygwin@cygwin.com
In-Reply-To: <10691742478.20030502194721@familiehaase.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

 --- "Gerrit P. Haase" <gp@familiehaase.de> wrote: > Hallo Danny,
> 
> >>> I suspect the latter.  You can help out by taking the set of patches to
> >>> the current Cygwin gcc package and tweaking them to apply to gcc 3.2.3
> >> 
> >> Where do I get these patches?
> >> 
> > This may help.
> 
> > The mingw source and patchset for gcc 3.2.3 at mingw download page
> > https://sourceforge.net/project/showfiles.php?group_id=2435
> > (look in release candidate section) also boostraps with target=cygwin (or
> it
> > did a week or so ago). 
> 
> Thanks.
> 
> > It contains all the patches in the cygwin-mingw-v2 CVS branch updated
> > to 3.2.3, plus a few tweaks to the -mno-cygwin business as per the gcc
> > trunk CVS,
> 
> > I plan to upload a final version of 3.2.3 for mingw next week
> > (after mingw user feedback)
> 
> I get this error now when c++filt.exe is linked:
> 
> rm -f cxxmain.c
> ln -s /winsup/src/gcc/../libiberty/cplus-dem.c cxxmain.c
> gcc -c -DMAIN -DIN_GCC    -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H 
>   -I. -I. -I/winsup/src/gcc -I/winsup/src/gcc/. -I/winsup/src/gcc/config
> -I/winsup/src/gcc/../include \
>   -DVERSION=\"3.2.3\" cxxmain.c
> gcc -o c++filt.exe -DIN_GCC    -O2 -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
> -Wno-long-long  -DHAVE_CONFIG_H  \
>   cxxmain.o underscore.o -lintl  -liconv  ../libiberty/libiberty.a
>
/bin/../lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.text+0x69):
> undefined reference to `_WinMain@16'
> collect2: ld returned 1 exit status
> 

You are using the wrong libiberty source.  Newer versions of
libiberty/cplus-dem.c do not have the standalone demangler machinery.  You need
to use the libiberty that is shipped with the gcc-3.2.3 distro, _not_ the
winsup/src/libiberty.  Moving the gcc src tree out of winsup sould do the
trick.

Danny



> 
> Gerrit
> -- 
> =^..^=
>  

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

