egcs+CYGWIN32 -- needs special linker help?
Mumit Khan
khan@xraylith.wisc.edu
Fri Oct 24 00:55:00 GMT 1997
I had written earlier:
> I've been trying to get egcs to work with gnu-win32 b18 distributed by
> Cygnus, and so far not having much luck. I can get the whole CDK to build
> ok with egcs, but get tons of linker warnings (and resulting programs that
> don't run under win32) when building cygwin.dll.
>
> After looking thru cygwin32 target macros, one major change in the recent
> snapshot since gnu-win32 beta 18 release is the addition of UNIQUE_SECTION
> and UNIQUE_SECTION_P macros and also the use of ".linkonce" directive that
> the PE linkers supposedly use to discard duplicates. Unfortunately this is
> what's causing the warnings from the linker (v2.9 according to cdk/ld/NEWS)
> when dealing with vtables.
>
> Do I need a newer ld?
And it turns out that I do indeed need a newer release of binutils than
2.8.1. The UNIQUE_SECTION and ASM_OUTPUT_SECTION_NAME etc macros break
with the last stable binutils release, but does work with the development
snapshots. For those who're interested in a (semi-)working egcs + cygwin32,
email me for a recipe.
It's nice to have member templates and reasonable exception handling in
C++ w/out as an alternative to Intel's (pretty damned good) C++ compiler
on win32.
Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/
More information about the Gcc
mailing list