Python论坛  - 讨论区

标题:[python-chinese] 有人用boost.python的吗?

2007年11月05日 星期一 17:48

BloodMage zhouyisu在gmail.com
星期一 十一月 5 17:48:13 HKT 2007

¸Õ¸ÕÔÚlinuxÏÂÓÃÁËboost.python,ÄãËƺõÖÁÉÙÐèÒª2¸ö¿â£ºlibboost-pythonºÍlibpython
±ÈÈçÎҵIJâÊÔÄ£¿éÓÃÏÂÃæµÄÃüÁî¿ÉÒÔ±àÒ룺
g++ mloader.cpp  -I/usr/include/python2.5/ -shared -o
mloader.so-lboost_python-gcc-1_33_1 -
lpython2.5

ÔÚ07-10-23£¬xuanll <xuanll在zctt.com.cn> дµÀ£º
>
>
> ¾²Ì¬¿âû¼ÓÈë½øÈ¥°É
>
> ----- Original Message -----
> *From:* Joe Simer <simerjoe在gmail.com>
> *To:* huanghao.c在gmail.com ; python-chinese在lists.python.cn
> *Sent:* Monday, October 22, 2007 11:40 PM
> *Subject:* Re: [python-chinese] ÓÐÈËÓÃboost.pythonµÄÂð?
>
> ÊÇÉÙÁ˶«Î÷°¡,µ«ÊÇÔõô»áÕâÑùÁÐ?¿Ï¶¨ÊÇÄĸöµØ·½Ã»ÓÐÅäÖúÃ,Ë­Åä¹ýÕâÌ׶«¶«µÄ,Âé·³Ö¸µãÒ»ÏÂŶ!
>
> ÔÚ07-10-22£¬Alec <huanghao.c在gmail.com> дµÀ£º
> >
> > ½«ÏÖÓеÄÒÆÖ²£¬ swig ÊÇ×îºÃµÄ°ì·¨(www.swig.org)
> >
> > Óà boost::python ÄãÒªÖØдºÜ¶à¡£
> >
> > ´Ó±¨´íÐÅÏ¢À´¿´
> >
> > òËÆÊÇÉÙÁ´½ÓÁËijЩ¶«Î÷¡£
> >
> > "undefined reference to `_imp___Py_NoneStruct'"
> >
> >
> > Joe Simer дµÀ:
> > > ÓÐÓÃboost.pythonµÄÂð?ÎÒÒÔÇ°ÓÐЩc++µÄ´úÂë,Ïë°ÑËüÃÇ×ö³ÉpythonÄ£¿é,µ«ÊǸÕ
> > > ¿ªÊ¼¾ÍÓöµ½À§ÄÑÁË, boost.pythonÔõô¶¼µ÷ÊÔ²»ºÃ.
> > > ÎÒÔÚxpÏ¿ª·¢,ÓõÄMingw+Eclipse
> > > ÔÚEclipseÖÐÒýÈëc:\python25 ºÍ d:\boostÒÔºó,ÔÚ±àÒëµÄʱºò³ö´í:
> > > Ô´Âë:
> > >
> > > #include 
> > > #include python.hpp>
<i>> > >
> > > using namespace std;
> > > using namespace boost::python;
> > >
> > > int main()
> > > {
> > > cout << "CPP print Hello World!!!"<< endl; // prints Hello World!!!
> > > return 0;
> > > }
> > >
> > > ´íÎóÐÅÏ¢:
> > >
> > > **** Build of configuration Debug for project HelloWorld ****
> > >
> > > **** Internal Builder is used for build ****
> > > g++ -LD:\boost -oHelloWorld.exe src\HelloWorld.o
> > > src\HelloWorld.o(.text$_ZN5boost6python3api6objectC2Ev+0xe): In
> > > function
> > `ZN5boost6python6detail11upcast_implI7_objectS3_EEPT0_PT_S5_':
> > > D:/boost/boost/python/cast.hpp: undefined reference to
> > > `_imp___Py_NoneStruct'
> > > Build error occurred, build is stopped
> > > Time consumed: 1375 ms.
> > >
> > > ¸÷λţÈË,Ë­°ï°ïÎÒ!
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese在lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> >
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>  ------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071105/036656f4/attachment.htm 

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

2007年11月06日 星期二 08:46

Jacky Ford witmud在gmail.com
星期二 十一月 6 08:46:16 HKT 2007

ÎÒÒ²ÕýÔÚÑо¿Õâ¿é£¬¾Ý˵ҪÓÃgccÖØбàÒëpython24£¬ÒòΪwindowsϵÄpython24Ô­À´ÊÇVC7.1±àÒëµÄ£¬ËùÒÔÖ±½ÓÓÃÓÐÎÊÌâ¡£²»¹ýÎÒû¸ãͨ£¬×¼±¸´ÓDev
C++תµ½VC2005ÉÏÊÔÊÔ¿´¡£ÕýÔÚÕÒVC2005.
Õâ·½ÃæÎÒÃÇ¿ÉÒԶཻÁ÷£¬Ò²Çë¸ßÊÖ³é¿ÕÖ¸µãÖ¸µã£¬×îºÃÊÇд¸öÍêÕûµÄ½Ì³Ì¡£»òÕ߸ã¸öÂÛ̳,wikiʲôµÄ£¬×ö¸öSWIG, BoostµÄרÌâ°É¡£


On 11/5/07, BloodMage <zhouyisu在gmail.com> wrote:
>
> ¸Õ¸ÕÔÚlinuxÏÂÓÃÁËboost.python,ÄãËƺõÖÁÉÙÐèÒª2¸ö¿â£ºlibboost-pythonºÍlibpython
> ±ÈÈçÎҵIJâÊÔÄ£¿éÓÃÏÂÃæµÄÃüÁî¿ÉÒÔ±àÒ룺
> g++ mloader.cpp  -I/usr/include/python2.5/ -shared -o mloader.so-lboost_python-gcc-1_33_1 -
> lpython2.5
>
> ÔÚ07-10-23£¬xuanll <xuanll在zctt.com.cn> дµÀ£º
> >
> >
> > ¾²Ì¬¿âû¼ÓÈë½øÈ¥°É
> >
> >
> >  ----- Original Message -----
> > *From:* Joe Simer <simerjoe在gmail.com>
> > *To:* huanghao.c在gmail.com ; python-chinese在lists.python.cn
> > *Sent:* Monday, October 22, 2007 11:40 PM
> > *Subject:* Re: [python-chinese] ÓÐÈËÓÃboost.pythonµÄÂð?
> >
> >
> > ÊÇÉÙÁ˶«Î÷°¡,µ«ÊÇÔõô»áÕâÑùÁÐ?¿Ï¶¨ÊÇÄĸöµØ·½Ã»ÓÐÅäÖúÃ,Ë­Åä¹ýÕâÌ׶«¶«µÄ,Âé·³Ö¸µãÒ»ÏÂŶ!
> >
> > ÔÚ07-10-22£¬Alec <huanghao.c在gmail.com> дµÀ£º
> > >
> > > ½«ÏÖÓеÄÒÆÖ²£¬ swig ÊÇ×îºÃµÄ°ì·¨(www.swig.org)
> > >
> > > Óà boost::python ÄãÒªÖØдºÜ¶à¡£
> > >
> > > ´Ó±¨´íÐÅÏ¢À´¿´
> > >
> > > òËÆÊÇÉÙÁ´½ÓÁËijЩ¶«Î÷¡£
> > >
> > > "undefined reference to `_imp___Py_NoneStruct'"
> > >
> > >
> > > Joe Simer дµÀ:
> > > > ÓÐÓÃboost.pythonµÄÂð?ÎÒÒÔÇ°ÓÐЩc++µÄ´úÂë,Ïë°ÑËüÃÇ×ö³ÉpythonÄ£¿é,µ«ÊǸÕ
> > > > ¿ªÊ¼¾ÍÓöµ½À§ÄÑÁË, boost.pythonÔõô¶¼µ÷ÊÔ²»ºÃ.
> > > > ÎÒÔÚxpÏ¿ª·¢,ÓõÄMingw+Eclipse
> > > > ÔÚEclipseÖÐÒýÈëc:\python25 ºÍ d:\boostÒÔºó,ÔÚ±àÒëµÄʱºò³ö´í:
> > > > Ô´Âë:
> > > >
> > > > #include 
> > > > #include python.hpp>
<i>> > > >
> > > > using namespace std;
> > > > using namespace boost::python;
> > > >
> > > > int main()
> > > > {
> > > > cout << "CPP print Hello World!!!"<< endl; // prints Hello World!!!
> > > > return 0;
> > > > }
> > > >
> > > > ´íÎóÐÅÏ¢:
> > > >
> > > > **** Build of configuration Debug for project HelloWorld ****
> > > >
> > > > **** Internal Builder is used for build ****
> > > > g++ -LD:\boost -oHelloWorld.exe src\HelloWorld.o
> > > > src\HelloWorld.o(.text$_ZN5boost6python3api6objectC2Ev+0xe): In
> > > > function
> > > `ZN5boost6python6detail11upcast_implI7_objectS3_EEPT0_PT_S5_':
> > > > D:/boost/boost/python/cast.hpp: undefined reference to
> > > > `_imp___Py_NoneStruct'
> > > > Build error occurred, build is stopped
> > > > Time consumed: 1375 ms.
> > > >
> > > > ¸÷λţÈË,Ë­°ï°ïÎÒ!
> > > >
> > > >
> > > ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > python-chinese
> > > > Post: send python-chinese在lists.python.cn
> > > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > >
> > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese在lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > Unsubscribe: send unsubscribe to   python-chinese-request在lists.python.cn
> > >
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >  ------------------------------
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071106/677cce90/attachment.html 

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

2007年11月06日 星期二 10:10

3751 lwm3751在gmail.com
星期二 十一月 6 10:10:40 HKT 2007

不要误导别人,好好读读文档吧。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071106/0f93e203/attachment.htm 

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

2007年11月06日 星期二 10:22

刘鑫 march.liu在gmail.com
星期二 十一月 6 10:22:47 HKT 2007

ÉÏ´ÎÊÇÄãÎʵÄÎÒ°É¡£Èç¹ûÊÇPython2.5£¬°²×°Ä¿Â¼µÄDLLsÏÂÓÐÒ»¸öMinGW/CygwinʹÓõÄlib£¬Ö»ÒªÄãÉè¶Ô¾²Ì¬Á´±à¿â¾ÍºÃ¡£

ÔÚ07-11-6£¬Jacky Ford <witmud在gmail.com> дµÀ£º
>
> ÎÒÒ²ÕýÔÚÑо¿Õâ¿é£¬¾Ý˵ҪÓÃgccÖØбàÒëpython24£¬ÒòΪwindowsϵÄpython24Ô­À´ÊÇVC7.1±àÒëµÄ£¬ËùÒÔÖ±½ÓÓÃÓÐÎÊÌâ¡£²»¹ýÎÒû¸ãͨ£¬×¼±¸´ÓDev
> C++תµ½VC2005ÉÏÊÔÊÔ¿´¡£ÕýÔÚÕÒVC2005.
> Õâ·½ÃæÎÒÃÇ¿ÉÒԶཻÁ÷£¬Ò²Çë¸ßÊÖ³é¿ÕÖ¸µãÖ¸µã£¬×îºÃÊÇд¸öÍêÕûµÄ½Ì³Ì¡£»òÕ߸ã¸öÂÛ̳,wikiʲôµÄ£¬×ö¸öSWIG, BoostµÄרÌâ°É¡£
>
>
>

-- 
½üÆÚÀÛ»ý±»ÈËBS¹ý£º
²»¶®MSSQL
²»¶®Windows
²»¶®Java
²»¶®Python
²»¶®Python/C++»ìºÏ¿ª·¢
²»¶®Ê²Ã´½Ð¿ò¼Ü
¡­¡­

ÁõöÎ
March.Liu
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071106/3bfd9514/attachment.html 

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

2007年11月06日 星期二 22:41

Jacky Ford witmud在gmail.com
星期二 十一月 6 22:41:23 HKT 2007

Ó¦¸ÃûÓУ¬ÎÒÄ¿Ç°µÄ»·¾³ÊÇ£ºWinXP, python24£¬Dev C++

ÎĵµÀïÃæ˵²»Ö§³ÖMinGW. http://www.boost.org/more/getting_started/windows.html
...Other command shells, such as MinGW <http://mingw.org/>'s MSYS, are not
supported¡ªthey may or may not work.
ÀïÃæÖ»¿´µ½Visual C++µÄ˵Ã÷

»òÕßд¸öSWIGµÄÒ²ºÃ£¬ÎÒҲû¸ã¶¨¡£ÎĵµËµ×Ô¼º±àÒ룬¿ÉÊÇ˵µ½on windows¾¹È»ËµFollow the usual Unix
instructions in the README
file......Õⲿ¸úû˵һÑùÂð£¬ÎÒÒªÊǸãUnixµÄ£¬¸ÉÂïµ½WindowsÉÏÕÛÌÚѽ£¬Ì«·óÑÜÁËÊ°ɡ£¶ÔÓÚVCµÄ˵Ã÷ºÃЩ£¬¿ÉÊÇÒ»À´ÊÖͷûÅÌ£¬¶þÀ´ÊµÔÚ²»Ïë×°VCÄǸöÅÓÈ»´óÎï¡£

ΪÁË·ÀÖ¹ÎÒÎóµ¼´ó¼Ò£¬Çë¸ßÊÖдһ¸öDev C++ϵݲװÉèÖÃÖ¸ÄÏ°É¡£

On 11/6/07, ÁõöÎ <march.liu在gmail.com> wrote:
>
> ÉÏ´ÎÊÇÄãÎʵÄÎÒ°É¡£Èç¹ûÊÇPython2.5£¬°²×°Ä¿Â¼µÄDLLsÏÂÓÐÒ»¸öMinGW/CygwinʹÓõÄlib£¬Ö»ÒªÄãÉè¶Ô¾²Ì¬Á´±à¿â¾ÍºÃ¡£
>
> ÔÚ07-11-6£¬Jacky Ford <witmud在gmail.com> дµÀ£º
> >
> > ÎÒÒ²ÕýÔÚÑо¿Õâ¿é£¬¾Ý˵ҪÓÃgccÖØбàÒëpython24£¬ÒòΪwindowsϵÄpython24Ô­À´ÊÇVC7.1±àÒëµÄ£¬ËùÒÔÖ±½ÓÓÃÓÐÎÊÌâ¡£²»¹ýÎÒû¸ãͨ£¬×¼±¸´ÓDev
> > C++תµ½VC2005ÉÏÊÔÊÔ¿´¡£ÕýÔÚÕÒVC2005.
> > Õâ·½ÃæÎÒÃÇ¿ÉÒԶཻÁ÷£¬Ò²Çë¸ßÊÖ³é¿ÕÖ¸µãÖ¸µã£¬×îºÃÊÇд¸öÍêÕûµÄ½Ì³Ì¡£»òÕ߸ã¸öÂÛ̳,wikiʲôµÄ£¬×ö¸öSWIG, BoostµÄרÌâ°É¡£
> >
> >
> >
>
> --
> ½üÆÚÀÛ»ý±»ÈËBS¹ý£º
> ²»¶®MSSQL
> ²»¶®Windows
> ²»¶®Java
> ²»¶®Python
> ²»¶®Python/C++»ìºÏ¿ª·¢
> ²»¶®Ê²Ã´½Ð¿ò¼Ü
> ¡­¡­
>
> ÁõöÎ
> March.Liu
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071106/b318a85a/attachment-0001.html 

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

2007年11月07日 星期三 22:11

张强 babyblue_963.student在sina.com
星期三 十一月 7 22:11:06 HKT 2007

ÓÃboost.pythonµÄ»°£¬VC6Ò²ÊÇ¿ÉÒÔµÄ
VC6×Ü»¹ÊDZȽÏСµÄ£¬Ö»ÊÇÔÚ±àÒëµÄʱºòÐèÒªÉèÖÃϱàÒëÑ¡ÏîZm£¬ÎҼǵÃÊÇÒªÉèÖÃΪ/Zm1000£¬´ó¸ÅÊÇÒòΪboost.pythonÀïÃæ´óÁ¿Ê¹ÓÃÁËÄ£°æµÄÔµ¹Ê

ÁíÍâÈç¹ûÓÐÌõ¼þµÄ»°×îºÃʹÓÃVC2003£¬VC6µÄSTLÓÐЩÎÊÌâ
VC2003¾ÍºÃÓöàÁË
  ----- Original Message ----- 
  From: Jacky Ford 
  To: python-chinese在lists.python.cn 
  Sent: Tuesday, November 06, 2007 10:41 PM
  Subject: Re: [python-chinese] ÓÐÈËÓÃboost.pythonµÄÂð?


  Ó¦¸ÃûÓУ¬ÎÒÄ¿Ç°µÄ»·¾³ÊÇ£ºWinXP, python24£¬Dev C++

  ÎĵµÀïÃæ˵²»Ö§³ÖMinGW. http://www.boost.org/more/getting_started/windows.html
  ...Other command shells, such as MinGW 's MSYS, are not supported¡ªthey may or may not work.
  ÀïÃæÖ»¿´µ½Visual C++µÄ˵Ã÷

  »òÕßд¸öSWIGµÄÒ²ºÃ£¬ÎÒҲû¸ã¶¨¡£ÎĵµËµ×Ô¼º±àÒ룬¿ÉÊÇ˵µ½on windows¾¹È»ËµFollow the usual Unix instructions in the README file......Õⲿ¸úû˵һÑùÂð£¬ÎÒÒªÊǸãUnixµÄ£¬¸ÉÂïµ½WindowsÉÏÕÛÌÚѽ£¬Ì«·óÑÜÁËÊ°ɡ£¶ÔÓÚVCµÄ˵Ã÷ºÃЩ£¬¿ÉÊÇÒ»À´ÊÖͷûÅÌ£¬¶þÀ´ÊµÔÚ²»Ïë×°VCÄǸöÅÓÈ»´óÎï¡£

  ΪÁË·ÀÖ¹ÎÒÎóµ¼´ó¼Ò£¬Çë¸ßÊÖдһ¸öDev C++ϵݲװÉèÖÃÖ¸ÄÏ°É¡£

  On 11/6/07, ÁõöÎ <march.liu在gmail.com> wrote: 
    ÉÏ´ÎÊÇÄãÎʵÄÎÒ°É¡£Èç¹ûÊÇPython2.5£¬°²×°Ä¿Â¼µÄDLLsÏÂÓÐÒ»¸öMinGW/CygwinʹÓõÄlib£¬Ö»ÒªÄãÉè¶Ô¾²Ì¬Á´±à¿â¾ÍºÃ¡£


    ÔÚ07-11-6£¬Jacky Ford <witmud在gmail.com> дµÀ£º 
      ÎÒÒ²ÕýÔÚÑо¿Õâ¿é£¬¾Ý˵ҪÓÃgccÖØбàÒëpython24£¬ÒòΪwindowsϵÄpython24Ô­À´ÊÇVC7.1±àÒëµÄ£¬ËùÒÔÖ±½ÓÓÃÓÐÎÊÌâ¡£²»¹ýÎÒû¸ãͨ£¬×¼±¸´ÓDev C++תµ½VC2005ÉÏÊÔÊÔ¿´¡£ÕýÔÚÕÒVC2005. 
      Õâ·½ÃæÎÒÃÇ¿ÉÒԶཻÁ÷£¬Ò²Çë¸ßÊÖ³é¿ÕÖ¸µãÖ¸µã£¬×îºÃÊÇд¸öÍêÕûµÄ½Ì³Ì¡£»òÕ߸ã¸öÂÛ̳,wikiʲôµÄ£¬×ö¸öSWIG, BoostµÄרÌâ°É¡£

       

    -- 
    ½üÆÚÀÛ»ý±»ÈËBS¹ý£º
    ²»¶®MSSQL
    ²»¶®Windows
    ²»¶®Java
    ²»¶®Python
    ²»¶®Python/C++»ìºÏ¿ª·¢
    ²»¶®Ê²Ã´½Ð¿ò¼Ü
    ¡­¡­

    ÁõöÎ
    March.Liu 
    _______________________________________________
    python-chinese
    Post: send python-chinese在lists.python.cn
    Subscribe: send subscribe to python-chinese-request在lists.python.cn
    Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
    Detail Info: http://python.cn/mailman/listinfo/python-chinese





------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese在lists.python.cn
  Subscribe: send subscribe to python-chinese-request在lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071107/8fd11ab6/attachment.htm 

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

2007年11月11日 星期日 14:47

heyuqi yuqi.he在gmail.com
星期日 十一月 11 14:47:33 HKT 2007

用 vc6 跑模板不是一般的郁闷 ...

On Nov 7, 2007 10:11 PM, 张强 <babyblue_963.student at sina.com> wrote:

>  用boost.python的话,VC6也是可以的
> VC6总还是比较小的,只是在编译的时候需要设置下编译选项Zm,我记得是要设置为/Zm1000,
> 大概是因为boost.python里面大量使用了模版的缘故
>
> 另外如果有条件的话最好使用VC2003,VC6的STL有些问题
> VC2003就好用多了
>
> ----- Original Message -----
> *From:* Jacky Ford <witmud at gmail.com>
> *To:* python-chinese at lists.python.cn
> *Sent:* Tuesday, November 06, 2007 10:41 PM
> *Subject:* Re: [python-chinese] 有人用boost.python的吗?
>
> 应该没有,我目前的环境是:WinXP, python24,Dev C++
>
> 文档里面说不支持MinGW. http://www.boost.org/more/getting_started/windows.html
> ...Other command shells, such as MinGW <http://mingw.org/> 's MSYS, are
> not supported―they may or may not work.
> 里面只看到Visual C++的说明
>
> 或者写个SWIG的也好,我也没搞定。文档说自己编译,可是说到on windows竟然说Follow the usual Unix
> instructions in the README
> file......这部跟没说一样吗,我要是搞Unix的,干嘛到Windows上折腾呀,太敷衍了事吧。对于VC的说明好些,可是一来手头没盘,二来实在不想装VC那个庞然大物。
>
> 为了防止我误导大家,请高手写一个Dev C++下的安装设置指南吧。
>
> On 11/6/07, 刘鑫 <march.liu at gmail.com> wrote:
> >
> > 上次是你问的我吧。如果是Python2.5,安装目录的DLLs下有一个MinGW/Cygwin使用的lib,只要你设对静态链编库就好。
> >
> > 在07-11-6,Jacky Ford <witmud at gmail.com> 写道:
> > >
> > > 我也正在研究这块,据说要用gcc重新编译python24,因为windows下的python24原来是VC7.1编译的,所以直接用有问题。不过我没搞通,准备从Dev
> > > C++转到VC2005上试试看。正在找VC2005.
> > > 这方面我们可以多交流,也请高手抽空指点指点,最好是写个完整的教程。或者搞个论坛,wiki什么的,做个SWIG, Boost的专题吧。
> > >
> > >
> > >
> >
> > --
> > 近期累积被人BS过:
> > 不懂MSSQL
> > 不懂Windows
> > 不懂Java
> > 不懂Python
> > 不懂Python/C++混合开发
> > 不懂什么叫框架
> > ……
> >
> > 刘鑫
> > March.Liu
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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://python.cn/pipermail/python-chinese/attachments/20071111/e4c921e2/attachment.htm 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号