libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlpreopen bug with cygwin


From: Gary V . Vaughan
Subject: Re: dlpreopen bug with cygwin
Date: Fri, 8 Jun 2001 18:29:41 +0100

On Tuesday 05 June 2001  3:35 pm, Robert Collins wrote:
> dlpreopen generates a list of symbols - say
>
> extern char _imp__free;
> <skip>
> extern char nothing;
> extern char printf;
> extern char realloc;
>
> from the source library - cyghello-2.dll
>
> "nothing" here should be extern __declspec(dllimport) char nothing;
> "_imp__free" shouldn't be present, because the actual symbol is in a
> different library. Or if it is present it should also be extern
> __declspec(dllimprt)...
>
> I'm not quite sure how to approach this, but my tentative logic is:
>
> if the library we are reading symbols from is a .dll, throw away __imp__
> symbols, and make all normal appearing symbols __declspec(dllimport).
>
> Is this likely to introduce any headaches ? Am I heading up the wrong
> tree?

That sounds like the right solution to me.  As ever, the proof of the pudding 
is in the eating =)O|

Cheers,
        Gary.
-- 
  ())_.  Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/   Research Scientist  http://www.oranda.demon.co.uk        ,_())____
  / )=   GNU Hacker          http://www.gnu.org/software/libtool   \'      `&
`(_~)_   Tech' Author        http://sources.redhat.com/autobook    =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]