Re: [Gtk1-win-developers] DLL_API
Brought to you by:
robinrowe
From: Donald M. <do...@dr...> - 2003-12-04 23:15:01
|
Robin Rowe wrote: >Donald, > > > >>In your dll_api.h only WIN32 and DLL_EXPORT are enough to cause symbols to >>be defined as declspec(dllexport). >>If you were then to build another dll based on this then they would be >>re-exported from the second dll... >> >> > >Ah, I think I see what the significant difference is now. In MSVC I only >build three dlls: gtk.lib, gdk.lib, and glib.lib. I don't build gmodule as a >separate dll. I have gmodule built into glib. > > So you build all of glib as one big dll and not 3 separate ones - glib, gthread, gobject and gmodule? I guess that make sense. >How about doing the same in cgwin? > > Yeah I could do that - but would make the automake stuff very different from the main glib. How much are you looking to be able to feed this work back into the main glib? Also how cross platform does it need to be? Will this code need to compile on Linux or others? I have a fix for gmodule that allows it to work, I just made it the same as gobject (also a separate DLL) where GOBJECT_VAR is used for the import/export of dll functions based on other defines. I added a #define section to gmodule.h much the same as the one in gobject/gparamspecs.h which seems to work, you can then still use G_MODULE_EXPORT and G_MODULE_IMPORT in the plugin dll's that use it. Will make sure the tests all pass tomorrow, libtool still causes a few issues when using mingw. Donald. |