win32 gdk_input_add on pipes



chatiman writes:
gdk_input_add doesn't seem to work on pipes (under cygwin).
The returned error is :
(process:1008): GLib-WARNING **: giowin32.c:1624: 3 is neither a file
descriptor or a socket

You seem to be mixing a Cygwin program and a Win32 GLib. A Cygwin
program should not use a GLib built for "native" Win32. As it says,
that message is from giowin32.c, and thus from code intended to be
used from "native" Win32 programs that use the Microsoft C runtime,
and Winsock sockets. Not from Cygwin programs. A native Win32 GLib
cannot understand Cygwin file descriptors. (GLib built for Cygwin
would include giounix.c and not giowin32.c.)

Is there a know fix to this ?

Make sure you build your program with gcc -mno-cygwin. Or, use a
Cygwin version of GLib. (http://web.sfc.keio.ac.jp/~s01397ms/cygwin/
has some realtively old version of GLib etc built for Cygwin.)

--tml





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