On Sep 26, 2014, at 7:17 PM, Fan Chun-wei <fanc...@yahoo.com.tw> wrote:

> 
> Hi,
> 
> This situation would have been hit by GLib and GTK+, if not done properly, as 
> they use things like _GLIB_EXTERN (for glib, gobject, gio) and _GDK_EXTERN 
> (for GDK, gtk) and they also export public variables (data)--but they build 
> and link just fine. In fact the work on using __declspec(dllexport) for ATK 
> is modeled on them. There is a ATK_VAR macro that is used to export (and 
> import using __declspec(dllimport) the public variables, for example, and 
> similar macros are used in GLib and GTK+, since the days of using 
> .symbols/.def files.
> 
> It might be worth it to see whether we can use __declspec(dllimport) for the 
> functions as well for better efficiency, though, but this would be something 
> we can look into a bit later. For the -mm libraries though, I think it might 
> be good if we use dllimport and dllexport all around, rather than using 
> gendef that makes use of dumpbin, as many other symbols are exported 
> unnecessarily during the process.

Sounds like something that should be in GLib, G_EXTERN. Oddly, there isn't one 
already.

Regards,
John Ralls

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to