Just wondering if I can have the answer here. Thanks. Please CC me as I am not subscribed. Thanks.
-- Xiaofan ---------- Forwarded message ---------- From: Andrew MacIntyre <andrew.macint...@acma.gov.au> Date: Tue, Jan 11, 2011 at 1:24 PM Subject: RE: [ctypes-users] pyusb under Cygwin and stdcall libusb-1.0 [SEC=UNCLASSIFIED] To: Xiaofan Chen <xiaof...@gmail.com>, ctypes-us...@lists.sourceforge.net On Tue, Jan 11, 2011 at 10:40 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > http://sourceforge.net/mailarchive/message.php?msg_id=26873757 > There seems to be problems to get pyusb to work under Cygwin. > > The author asks if Cygwin libusb-1.0 should use stdcall or not? > http://sourceforge.net/mailarchive/message.php?msg_id=26873777 > > Normal Python under Windows can support either cdecl (CDLL) or > stdcall (WinDLL). The problem is that Cygwin Ctypes only supports > cdecl. Therefore it is not possible to load cygusb-1.0.dll and pyusb's > libusb-1.0 backend will not work under Cygwin as a result. > > Just wondering why Ctypes under Cygwin does not support > WinDLL? Take note os.name == 'posix' under Cygwin Python. > I have updated Cygwin installation to the latest version. > > Just wondering why Ctypes under Cygwin does not support > WinDLL? Take note os.name == 'posix' under Cygwin Python. That really is a question for the maintainer of Python on Cygwin. It may be because the necessary libffi plumbing isn't in yet place on that platform. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple