Re: Load Module
- From: Alan <alan signal11 us>
- To: jimenezr ufrima imag fr
- Cc: gtkmm-list gnome org
- Subject: Re: Load Module
- Date: Thu, 30 Jun 2005 17:50:20 -0400
Try making it non-static.
Alan.
jimenezr ufrima imag fr wrote:
Hi,
i am working on a program which load module.
It was working, but, now i have upgraded all news librairies
and i cannot load module.
To understand, i made a small program and a loadable module.
class Module : public IPlugin{
public:
ModuleContact ();
~ ModuleContact ();
Glib::ustring getModuleName() { return "test";};
};
extern "C"{
static IPlugin *get_module (){return new Module ;}
}
I use
class IPlugin : public sigc::trackable {
public:
IPlugin() { }
virtual ~IPlugin() { }
//-------------misc---------------------//
static IPlugin *activeModule_ptr;
virtual Glib::ustring getModuleName() { return "IPlugin";};
};
When i try to load the module,
Glib::Module* loadmod = new
Glib::Module(filename,Glib::MODULE_BIND_MASK);
i have no error
but, when i try tu use the fonction get_symbol,
bool test = loadmod->get_symbol ("getModuleName", cyril);
i find nothing :
This is the ouput:
looking for plugins ...
creating module with filename : ./libcontact.so ...
name :./libcontact.so
New module found.
getting symbol ... symbol not found !!!!
0 plug-in(s) found(s).
Do anything change recently in the process of module's loading ?
Thank
Remy
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]