[C++-sig] Re: C++-sig Digest, Vol 15, Issue 9

千里马肝 tlovexyj at 21cn.com
Sat Oct 16 17:43:54 CEST 2004


c++-sig-request,您好!

	I have allready complied boost::python and I have four lib named boost_python_pydebug.lib, boost_python_debug.lib, boost_python.lib and libboost_python_debug.lib. If I use boost::python only and link boost_python_debug.lib, it's all fine. 
 And I checked up the application need boost_python_debug.dll and python22.dll. When I use python API in this same code, then the python.h will be include, so it link the python22_d.lib in the pyconfig.h automatic. It means the application will be need python22_d.dll, OMG!!! If my poor application running, it will crash when I get the __main__ dict, because boost::python use python22.dll but python API use python22_d.dll, python initialize twice... oops~
	Thanks for help , David Abrahams!


>Send C++-sig mailing list submissions to
>	c++-sig at python.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://mail.python.org/mailman/listinfo/c++-sig
>or, via email, send a message with subject or body 'help' to
>	c++-sig-request at python.org
>
>You can reach the person managing the list at
>	c++-sig-owner at python.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of C++-sig digest..."
>
>
>Today's Topics:
>
>   1. Re: How can I use boost::python and Python API at the	same
>      time (David Abrahams)
>   2. Re: Embedding python and sigint (David Abrahams)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Thu, 14 Oct 2004 10:09:19 -0400
>From: David Abrahams <dave at boost-consulting.com>
>Subject: [C++-sig] Re: How can I use boost::python and Python API at
>	the	same time
>To: c++-sig at python.org
>Message-ID: <u1xg1v1bk.fsf at boost-consulting.com>
>Content-Type: text/plain; charset=gb2312
>
>"千里马肝" <tlovexyj at 21cn.com> writes:
>
>> Hi,
>> 	How can I use boost::python and Python API at the same time?
>
>Just use them (?)  There's nothing to it.  You can find numerous
>examples in the libs/python/test subdirectory of your Boost CVS tree
>or in http://www.boost.org/libs/python/test/.
>
>> 	So, Which lib is the right lib I must link? It's
>> 	boost_python_debug.lib or boost_python_pydebug.lib?  Thanks for
>> 	reply~
>
>http://www.boost.org/libs/python/doc/building.html#variants should
>answer your question.  If not, please ask.
>
>-- 
>Dave Abrahams
>Boost Consulting
>http://www.boost-consulting.com
>
>
>
>------------------------------
>
>Message: 2
>Date: Thu, 14 Oct 2004 10:10:04 -0400
>From: David Abrahams <dave at boost-consulting.com>
>Subject: [C++-sig] Re: Embedding python and sigint
>To: c++-sig at python.org
>Message-ID: <uvfddtmpv.fsf at boost-consulting.com>
>Content-Type: text/plain; charset=us-ascii
>
>Brian Murphy <brian.p.murphy at gmail.com> writes:
>
>> Hi,
>> I have embedded python sucessfully in my multithreaded application but
>> I have one problem. It seems that when I initialize the interpreter,
>> sigint(ctrl-c) gets swallowed. I am running Fedora Core 2 and Python
>> 2.3 compiled to a shared library. Is there any way; apart from writing
>> my own signal handler and binding it to sigint, to allow normal
>> sigints ?
>
>Brian, 
>
>Sounds like this is not a C++-specific question.  You might get
>better answers on comp.lang.python.
>
>-- 
>Dave Abrahams
>Boost Consulting
>http://www.boost-consulting.com
>
>
>
>------------------------------
>
>_______________________________________________
>C++-sig mailing list
>C++-sig at python.org
>http://mail.python.org/mailman/listinfo/c++-sig
>
>
>End of C++-sig Digest, Vol 15, Issue 9
>**************************************
>
>.



More information about the Cplusplus-sig mailing list