From: Vadim Zeitlin on
On Tue, 23 Jan 2007 23:01:12 +0800 ף�� <zjzfb(a)163.com> wrote:

> use dynamic library libA.so in app:
> first I use ACE_DLL, I just use: ACE_DLL dll("A");
> but when I use wxDynamicLibrary instead, I must use this way:
> wxDynamicLibrary dll("libA")

Yes, not all shared objects loaded by wxDynamicLibrary have a "lib"
prefix, even under Unix. For instance, loadable modules often don't.

> I think it's inconvenient, could wxDynamicLibrary act as ACE_DLL?

Of course it can't be changed any more (this would break all the existing
code using it). We could, in principle, add a static wxDynamicLibrary
LoadLibrary() method which would prepend "lib" under Unix platforms to the
provided name but this is so trivial to do anyhow that I don't think anyone
is really motivated to do it (but if you are, we could consider a patch
adding it, please read http://www.wxwidgets.org/technote/patches.htm if
you'd like to do it).

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org