Re: gmodule question
- From: Lex Trotman <elextr gmail com>
- To: Kurucz István <kurucz istvan gmail com>, gtk-list gnome org
- Subject: Re: gmodule question
- Date: Sun, 16 May 2010 19:51:58 +1000
On 16 May 2010 19:45, Kurucz István
<kurucz istvan gmail com> wrote:
Hello,
>> I would use a string in my modu
>>
>> in my module:
>> G_MODULE_EXPORT extern const gchar *foobar_name = "foobar";
>>
>>
>> in main application:
>>
>> gchar* test;
>> g_module_symbol(module, "foobar_name", (gpointer*)&test);
>
> Assuming you opened module and tested the return??
>
> Now test the return of g_module_symbol and use g_module_error to find out
> the error.
Yes, module opening is success. g_module_error() result has nothing
special. It works fine with functions, but I cannot access other
symbols (eg. variables).
You mean that g_module_symbol returned true but the pointer was not the string?
If so you had better post the whole of a short program that demonstrates the problem.
Cheers
Lex
And PS please reply to the list not to me personally, other people may have more to add
Thanks:
Kurucz István
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]