Re: mingw DLL problem

Thomas Sailer <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel,gmane.comp.cad.geda.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.