wxDynamicCast: what option?
Carsten A. Arnholm
arnholm at offline.no
Tue Feb 26 12:25:32 PST 2008
Igor Korot wrote:
> Vadim,
> What option shopuld I choose in order to make sure I'm linking
> dynamically? And, most importantly, how do I check it?
The way I understand DLLs and MSVC is that you either link another DLL
statically by linking against the import library of the DLL. Alternatively
you don't link against the import library but use LoadLibrary(...) and
GetProcAddress(...) (from Windows API) to get function pointers. I think wx
has portable equivalents for those, but I don't think it is possible or
makes any sense to use the wx DLLs that way, because they export C++ classes
not just functions. Your application needs to include the wxWidgets header
files and must therefore link against the equivalent import libraries.
The dependency walker Vadim mentions is very good for finding dependencies
on Windows. Recently, I stumbled over a similar tool that can show
dependencies on Linux
http://domseichter.blogspot.com/2008/02/visualize-dependencies-of-binaries-and.html
Is there a tutorial somewhere explaining how to make your own wxWidgets
appplication .dll/.so projects (for example using Code::Blocks IDE)? I know
how things work with exporting generic C++ classes from dlls on windows, but
I have not yet figured out how to partition my wxWidget application into
.dll/.so's in a way that would also work on Linux.
--
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list