Re: [gtkmm] dynamic loading



"xavier dufresne" <xdufresne gmx fr> writes:

> I need to use dynamic loading. I didn't find anything in gtkmm lib, so I
> tried to use g_module.
> It failed so I tried dlopen(), and it produced the same error:
> g_module_symbol() and dlsym() can't resolve the given symbol.
> Maybe symbols are hidden by C++ mangling. This functions are written in C so
> they don't resolve mangling. Is it right ?
> 
If they are compiled by a C++ compiler and not 'extern "C"', they will
be mangled.

> Is there a way to manage dynamic loading with gtkmm ?
> If not, how can I do ? Do you know a C++ library which manage dynamic
> loading ?
> 
Yes, I've written one ;-) I would be really glad if you could give me
some feedback on it. I'm ATM working on a user manual, but the API is
documented (mostly) and it works[tm].

If you're interested, check out http://ucxx.sourceforge.net, grab a
tarball and look in the examples directory. I will put the
(preliminary) user manual online real soon (next 24 hours).

Regards, Andy
-- 
Andreas Rottmann         | Dru ICQ        | 118634484 ICQ | a rottmann gmx at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62



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