Re: pythton 调用 so 共享库不能转换参数类 型

2008-06-03 Thread windwiny
On Jun 3, 3:19 pm, "Mark Tolonen" <[EMAIL PROTECTED]> wrote: > "windwiny" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > 我初学python 的 ctypes, 现在的环境是 ubuntu 8.04, Python 2.5.2 > > (r252:60911, > > May 7

pythton 调用 so 共享库不能转换参数类型

2008-06-02 Thread windwiny
我初学python 的 ctypes, 现在的环境是 ubuntu 8.04, Python 2.5.2 (r252:60911, May 7 2008, 15:19:09) , gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) 我创建了一个 so 共享库 - #include double myfd(double x) {return x * 2;} float myff(float x) { return x * 3;} int myfi(int x) { return x *