Python论坛  - 讨论区

标题:Re: [python-chinese] mod_python 调用C函数的问题

2006年08月01日 星期二 11:24

spr liu sprliu at gmail.com
Tue Aug 1 11:24:49 HKT 2006

·Ç³£¸Ðл£¬ÎÒÓÃPython
ÓÖдÁËÒ»±é£¬È·ÊµÊÇ»·¾³±äÁ¿ÎÊÌ⣬ÎļþÊôÐÔÒ²²»¶Ô£¬ºÇºÇ£¬Äãȫ˵¶ÔÁË£¬²»¹ýÓÃSwig¿çÓïÑÔµ÷ÊÔÆðÀ´Õæ²»·½±ã¡£ÓÃpythonд£¬µ÷ÊԾͱȽÏÈÝÒס£

ÔÚ06-7-31£¬Xiao Lei Wu <xiaoleiw at cn.ibm.com> дµÀ£º
>
> Ò»°ëÕâÖÖÇé¿öÊÇÓÉÓÚϵͳ»·¾³Ôì³ÉµÄ
> ¿´¿´apacheµÄÓû§µÄ»·¾³¸úrootÓÐʲô²»Í¬£¬°üÀ¨PATH,LD¿ªÍ·µÄһϵÁбäÁ¿µÈ£¬»¹ÓÐÎļþµÄÊô×éȨÏÞµÈ
>
> Best Regards,
>
> Zachary Wu (Îâ°~ÀÚ)
> Software Engineer, Enterprise Content Management FVT, IBM China Software
> Development Lab
> Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235
> Internet: xiaoleiw at cn.ibm.com
> Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN
> Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di,
> Beijing 100085, P.R. China
>
> python-chinese-bounces at lists.python.cn дÓÚ 2006-07-31 13:14:56:
>
>
> > ÓÃCдһ¸öСº¯Êý£¬
> > /*filetest.c*/
> > #include 
> >
> > char * disp()
> >  {
> >    static char buf[24];
> >     FILE * fp;
> >     fp=fopen("1.txt","r");
> >     fread(buf,1,23,fp);
> >     buf[23]='\0';
> >     fclose(fp);
> >
> >     return buf;
> >  }
> >
> > ÓÃswigת»»³Épython¿Éµ÷Óõĺ¯Êý¡£
> > ÔÚpython»·¾³Ïµ÷ÓÃfiletest.disp() ÔËÐÐÕý³££¬
> > µ«ÔÚmod_pythonÏÂÓÃpublisherµ÷ÓÃÈ´ÎÞЧ¡£apacheÈÕÖ¾Ìáʾ¶Î´íÎó£¨ signal
> > Segmentation fault (11)£©
> > Çë½ÌÔ­Òò¡£
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060801/0634c8e2/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号