Re: g_module...: module calls function of core applicatioin
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: Tobias Kipfelsberger <tobias kipfelsberger gmx de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_module...: module calls function of core applicatioin
- Date: Sun, 30 Oct 2005 19:24:45 +0100
On Sun, Oct 30, 2005 at 05:43:21PM +0100, Tobias Kipfelsberger wrote:
I have a plugin which is registered and loaded with the g_module functions.
So far so good everything works find.
But how can i let the modul access a function of the coreapplication?
Example:
in CoreApplication.h:
G_MODULE_EXPORT void
setCoreMenuAppbarText (const gchar* text)
{}
in plugin.c:
#include "CoreApplication.h"
void
xyz ()
{
setCoreMenuAppbarText("test");
}
as i execute the programm... i always get a undefined symbol error.
You have to link the program with -export-dynamic (either as
ld option, or libtool link option if you use libtool).
Yeti
--
That's enough.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]