Re: Compiling ASCP

Ethan (
Sun, 1 Nov 1998 01:20:03 -0800 (PST)

On Sat, 31 Oct 1998, David S. Jackson wrote:

> Well, this sounds like a bit of a hot topic, compiling against
> soon-to-be-stable libs and all, but I'm getting the following errors after
> trying to compile gtk+-1.1.2 with glib-1.1.4: 
> .libs/ undefined reference to g_datalist_set_destroy'
> .libs/ undefined reference to g_datalist_id_set_destroy'
> I have a previous version of gtk installed; would this have anything to do
> with this problem?

I just looked at the source for glib-1.1.4, and I'd say glib is the 
problem.  Looks like they removed the two functions you had trouble with, 
so gtk+-1.1.2 and glib-1.1.4 are incompatible.  Writing a replacement 
looks pretty trivial:

#define   g_datalist_id_set_destroy(dl, k, f)  \
     g_datalist_id_set_data_full ((dl), (k), NULL, (f))
#define   g_datalist_set_destroy(dl, k, f)  \
     g_datalist_id_set_destroy ((dl), g_quark_try_string ((k)), (f))

But I'd suggest just going with glib-1.1.3 until a new gtk+ is released.  
Or use CVS, which likely doesn't have this problem.

Ethan Fischer