Boost logo

Boost Users :

From: damny_at_[hidden]
Date: 2007-12-06 13:44:07


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)

daniel

> -----Ursprüngliche Nachricht-----
> Von: boost-users_at_[hidden]
> Gesendet: 05.12.07 15:37:35
> An: boost-users_at_[hidden]
> Betreff: Re: [Boost-users] build boost.python tutorial "hello world" without bjam

>
> damny_at_[hidden] wrote:
>
> > thanks for your replay,
> >
> > but nothing happens when i reorder the compile command.
> > like before, the same error messages appear.
> >
> > are there any other ideas? i'm at a loss.
>
> OK, the only other thing I can offer is the output if the commands invoked
> by bjam when building this tutorial example:
>
> ---%<---
> C:\src\boost\BOOST_~3\libs\python\example\tutorial>bjam -d+2 --toolset=gcc
> Building Boost.Regex with the optional Unicode/ICU support disabled.
> Please refer to the Boost.Regex documentation for more information
> (don't panic: this is a strictly optional feature).
> gcc.compile.c++ bin\gcc-mingw-3.4.2\debug\hello.o
>
> "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g
> -I"..\..\..\.." -I"C:\Python25\Include" -c -o
> "bin\gcc-mingw-3.4.2\debug\hello.o" "hello.cpp"
>
> gcc.link.dll bin\gcc-mingw-3.4.2\debug\hello.a
> bin\gcc-mingw-3.4.2\debug\hello.pyd
>
> "g++" -L"C:\Python25\libs" -Wl,-R -Wl,"C:\Python25" -Wl,-R
> -Wl,"C:\Python25\libs" "-Wl,--out-implib,bin\gcc-mingw-3.4.2\debug\hello.a"
> -o "bin\gcc-mingw-3.4
> .2\debug\hello.pyd" -shared -Wl,--start-group
> "bin\gcc-mingw-3.4.2\debug\hello.o"
> "..\..\..\..\bin.v2\libs\python\build\gcc-mingw-3.4.2\debug\boost_python-mgw3
> 4-d-1_34_1.a" -lpython25 -Wl,--end-group -g
>
> Creating library file: bin\gcc-mingw-3.4.2\debug\hello.a
> --->%---
>
> Here you can see the exact command used to compile and link the tutorial
> example in boost 1.34.1.
>
> Maybe this gets you started.
>
> HTH, Markus
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066


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