Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2007-12-12 14:15:20


on Thu Dec 06 2007, damny-AT-web.de wrote:

> hi.
>
> in result of your post, i changed my original bat like this:
>
> // --- snip -----------------------------------------------------------------------------
> SET DIR_MINGW=c:\development_compiler\mingw\
> SET DIR_BOOST=c:\development_compiler\_boost\
> SET DIR_PYTHN=c:\development_compiler\python25\
> SET DIR_PRJCT=%~dp0
> SET NME_PRJCT=hello
> SET CC=c:\development_compiler\mingw\bin\g++.exe
> SET LD=c:\development_compiler\mingw\bin\ld.exe
> SET INCL=-I%DIR_BOOST%include\boost-1_34_1 -I%DIR_PYTHN%include -I%DIR_MINGW%include
> SET LIBS=-L%DIR_BOOST%lib -L%DIR_PYTHN%libs -L%DIR_MINGW%lib
> %CC% -O0 -shared %INCL% %DIR_PRJCT%%NME_PRJCT%.cpp ^
> %LIBS% %DIR_BOOST%lib\boost_python-mgw34-1_34_1.a -lpython25 ^
> -o %NME_PRJCT%.pyd
> // --- snip -----------------------------------------------------------------------------
>
> in association with "boost_python-mgw34-1_34_1.dll" the "hello world" demo works *YeahHa*.
> but is there a possibility to avoid the necessity of using the dll? :o)

Yes, but first read
http://www.boost.org/libs/python/doc/building.html, in particular this
section:
http://www.boost.org/libs/python/doc/building.html#choosing-a-boost-python-library-binary

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net