In case someone is using old current gdkpixbuf.nim on Windows (maybe Aporia does?)
There are some chances the some functions may not work on windows.
I just looked at gdk-pixbuf-2.31.2 headers, and there is some really wired stuff, which confused me
#ifndef __GTK_DOC_IGNORE__ #ifdef G_OS_WIN32 /* DLL ABI stability hack. */ #define gdk_pixbuf_new_from_file gdk_pixbuf_new_from_file_utf8 #define gdk_pixbuf_new_from_file_at_size gdk_pixbuf_new_from_file_at_size_utf8 #define gdk_pixbuf_new_from_file_at_scale gdk_pixbuf_new_from_file_at_scale_utf8 #endif #endif GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename, GError **error); GdkPixbuf *gdk_pixbuf_new_from_file_at_size (const char *filename, int width, int height, GError **error); GdkPixbuf *gdk_pixbuf_new_from_file_at_scale (const char *filename, int width, int height, gboolean preserve_aspect_ratio, GError **error);
So when I am not totally wrong, on windows the library functions should have _uft8 extension when called, due to the define statement above. I think for current gdkpixbuf.nim they have not that extension. That header code differs from other glib stuff, which is not that strange. I can not test on windows currently...