Problems running testgtk (was: [gtkada] Re: Problems running testgtk)

Dmitry A. Kazakov mailbox at dmitry-kazakov.de
Tue Aug 1 16:37:56 CEST 2006


On Tue, 1 Aug 2006 15:26:50 +0200, you wrote:

> On Tuesday 01 August 2006 15:22, Dmitry A. Kazakov wrote:
>> #ifdef G_OS_WIN32
>> /* DLL ABI stability hack. */
>> #define gdk_pixbuf_save gdk_pixbuf_save_utf8
>> #define gdk_pixbuf_savev gdk_pixbuf_savev_utf8
>> #endif
>> ------------------------------
>> which obviously means that gdk_pixbuf_save_utf8 has to be routed to
>> gdk_pixbuf_save.
> 
> I read it as exactly the opposite in fact. If there is a call to 
> gdk_pixbuf_save in C, the real function to call is gdk_pixbuf_save_utf8

You're right. I also have found yet another #define

#ifdef G_OS_WIN32
extern __typeof (gdk_pixbuf_save_utf8) IA__gdk_pixbuf_save_utf8
__attribute((visibility("hidden")));
#define gdk_pixbuf_save_utf8 IA__gdk_pixbuf_save_utf8

#endif

OK, it seems that I've find at least one problem. There are two DLLs:

...GNAT\GPL_2006\bin\libgdk_pixbuf-2.0.0.dl

and

...GtkAda\bin\libgdk_pixbuf-2.0.0.dl

The second is OK in the sense that it has both gdk_pixbuf_save and
gdk_pixbuf_save_utf8. Interestingly enough that they have same names, which
led to confusion.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



More information about the gtkada mailing list