Thomas Sailer wrote: > On Sat, 2007-11-03 at 18:12 -0400, al davis wrote: > >> Different from the posix standard??? > > windows? posix??? even without sfu???
Windows these days translates to POSIX in many ways. > 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. Global variables, yes, but... >> 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... Wrong wrong wrong. Icarus Verilog does it. The ivl.exe main program dynamically loads code generators that call many functions provided by the ivl.exe program. You just have to export them properly. And it all works just fine with mingw. And no, I am not an Windows export either. -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." _______________________________________________ geda-dev mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
