Re: g_module_build_path on Win32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eugene T writes:
 > g_module_build_path prepends a "lib" prefix to module names on Win32, 
 > which imitates the Unix behavior. Is there a technical reason for
 > this?

Not really, except that the "lib" prefix is used on Win32, too,
exactly in the kind of software that most often uses GLib
I.e. software which has been ported from GNOME/Unix, and which is
built using the GNU toolcahin (especially libtool).

 > this prevents the function from loading general purpose dll's in a
 > cross-platform way without reproducing the logic.

If one specifies the full name of the dll including the ".dll",
g_module_build_path() doesn prepend "lib".

Sure, the logic in what g_module_build_path() does is debatable, but
changing it now would be sure to break something. Anyway,
g_module_build_path() is just a few lines of code, no big deal in
doing what you think is the right thing in your own code instead?

--tml

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux