[maemo-developers] undefined reference to 'g_strcmp0'

From: Pedro Sanchez psanchez at nortel.com
Date: Fri Sep 26 20:57:54 EEST 2008
On Fri, 2008-09-26 at 19:46 +0200, Fred wrote:
> Pedro Sanchez a écrit :
> > Likely a silly question, but I'm getting the subject linking error when
> > I try to use this glib function.
> > 
> > My configure.ac file has
> > 
> > PKG_CHECK_MODULES(... glib-2.0 ...)
> > 
> > and my source file has
> > 
> > #include <glib.h>
> > #include <glib/gprintf.h>
> > 
> > What else is needed?
> > 
> > Thanks,
> > 
> 
> from the glib doc : Since 2.16
> What version is your glib in scratchbox ?

Yeap, you're right. In my diablo SDK:

Source: glib2.0
Version: 2.12.12-1osso13

... and looking at the documentation there is no g_strcmpXXX of any kind
for this version. I guess I'll fall back to the classic strcmp, or how
else do you compare strings in current maemo SDK (g_ascii_strcasecmp()
maybe)?

Thanks,

-- 
Pedro






More information about the maemo-developers mailing list