Re: g_module...: module calls function of core applicatioin



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]