minires-0.95 - a new package ready for review

Pierre A. Humblet Pierre.Humblet@ieee.org
Wed Nov 19 21:33:00 GMT 2003



Nicholas Wourms wrote:
> 
> vinschen@redhat.com wrote:


> > Does ld on Cygwin support weak symbols?  Or is it possible to
> > define __imp__res_query additionally to __imp____res_query?
> 
> No, the current pe bfd doesn't support the weak attribute.  I believe
> only elf targets support it at this time (maybe some aout as well?).

There is something in the "Machine Dependent" node of the ld info.
 
> However, the kludge I use to get around this is to just do this in the
> source file:
> 
> #define foo __foo
> int
> __foo {
> ....
> }
> 
> Or you can use a typedef if your symbol is a struct or similar.

I am not sure if this addresses the problem at hand.
There IS and include file with #define foo __foo
but configure runs in a problem when it calls foo() without including
said include file. Thus we would like to have both __foo and foo.

Pierre



More information about the Cygwin-apps mailing list