gmodule question



Hello,

I would use a string in my module:

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);
if (test)
	g_message("++ %s ++", test);


But wrong, pointer contain bad address, why?


Thanks:
Kurucz István


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