Re: g_module_build_path on Win32
- From: Tor Lillqvist <tml iki fi>
- To: Eugene T <gtkplist talagrand org>
- Cc: gtk-list gnome org
- Subject: Re: g_module_build_path on Win32
- Date: Wed, 29 Mar 2006 16:11:54 +0300
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]