On Thu, 13 May 1999, Marcin Kasperski wrote:
> 1) Run dia
> 2) Create new diagram
> 3) Draw rectangle using the symbol from the main palette (the first one
> in the second row, the one just below the arrow)
> 4) Change tool to pointer and double click the rectangle
> 5) Change line style to dashed
> 6) Press apply (or OK if you prefer)
>
> ... dia exits with:
>
> dia: error in loading shared libraries
> /usr/local/lib/dia/libstandard_objects.so: undefined symbol:
> gtk_toggle_button_get_active
Works for me.
gtk_toggle_button_set_active() is a pretty new function in gtk.
It used to be named gtk_toggle_button_set_state().
There is a #define in gtkcompat.h which translates the older to the newer
if GTK_DISABLE_COMPAT_H isn't defined.
Check which symbol you have defined in your libgtk.so with nm.
> What is strange here is that when I do exactly the same with the simple
> line segment (the third tool in the second row) everything is OK and the
> line is changed to dashed.
This isn't so strange. Line.c doesn't call gtk_toggle_button_set_active.
Only box.c and image.c does. It's not the changing of line style that
makes it crash, but the apply button press.
> The main question is:
> - which versions of GTK libraries I should use?
Version 1.2.0 or later is recommended.
/ Alex