[Top][All Lists]

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

Re: windows and dlopen

From: Ralf Wildenhues
Subject: Re: windows and dlopen
Date: Thu, 7 Sep 2006 15:54:59 +0200
User-agent: Mutt/1.5.13 (2006-09-01)

Hello Markus,

* Duft Markus wrote on Thu, Sep 07, 2006 at 03:45:01PM CEST:
> i'm currently working on wgcc v2 and the libltdl behaviour on windows.
> looking at mdemo-static.test and co. i have a little problem. since all
> libs are linked in static, the symbols which are looked up are contained
> in the executeable itself,

That is a feature of dlpreopening.

> so my idea was to dlopen the executeable, and just treat it as a
> normal dll.

No, let's not do that.  Please read up on dlpreopening in the Libtool
manual.  Real dlopening is for the non-static case.  The preopen module
is supposed to take care of looking up the symbols in the generated

> This doen't work, since an executeable
> misses some things a dll has, so i can't find _any_ symbol in an
> executeable image somehow. it just seems to be empty ;o)

It's been a while since I looked at the static case, but IIRC then it
worked just fine under mingw with both GCC and MSVC (with Peter Ekberg's
patches applied).

Which Libtool version are you using by the way, with what patches?


reply via email to

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