g_string_equal is missing?



dear all,

the linker doesn't seem to find any references to g_string_equal.  has this
function been removed?

are we supposed to use strncmp on GString foo->str to compare strings?

        #include <stdio.h>
        #include <gtk/gtk.h>

        int main(void)
        {
                GString *foo, *bar;
                foo = g_string_new("hello");
                bar = g_string_new("world");

                if (g_string_equal(foo, bar)) {   /* undefined reference */
                        printf("equal\n");
                }

                return 0;
        }


pete

-- 
"The following addresses had permanent fatal errors..."      p dirac org
                               -- Mailer Daemon              www.dirac.org/p




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