gnucap-devel
[Top][All Lists]
Advanced

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

Re: [Gnucap-devel] mingw DLL problem


From: Thomas Sailer
Subject: Re: [Gnucap-devel] mingw DLL problem
Date: Sun, 04 Nov 2007 00:03:01 +0100

On Sat, 2007-11-03 at 18:12 -0400, al davis wrote:

> Different from the posix standard???

windows? posix??? even without sfu???

I don't think that windows provides for (direct) access to main
application globals from a DLL. You could use ugly workarounds, like
calling a DLL function with the address of x.

> On *ix, a global object is declared once, somewhere, 
> and "extern" everywhere else.

Oh sorry, I misread the program - see, it's not obvious 8-)

> The real issue is the global function bar().

Can't do that AFAIK (and I'm no windows expert). Normal .exe's don't
have an export table. You'd have to put basically all of gnucap's core
except for the DLL loader into a DLL which is linked to all the other
DLL's...

Tom






reply via email to

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