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: > The real issue is the global function bar(). Seems like it can be made to work. You have to link the exe like a DLL (so that it also gets an export table), but still mark it as EXE (because at least wine refuses to "run" a DLL directly, you'd need rundll32 to run it). See the attached program. I have tested it only under wine - don't know whether it works under "real" windows. I don't have windows handy here. Tom _______________________________________________ Gnucap-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnucap-devel
bar.def
(text/plain, 102 B)
DESCRIPTION "Bar Shared Library" VERSION 1.0 CODE READ SHARED EXECUTE DATA READ WRITE EXPORTS bar
foo.def
(text/plain, 91 B)
DESCRIPTION "Foo Exe" VERSION 1.0 CODE READ SHARED EXECUTE DATA READ WRITE EXPORTS foo