[C++-sig] Building "hello world" with Boost.Python

k k ralvek at yahoo.it
Tue Sep 30 17:40:06 CEST 2008


Yes, running bjam -n -a i can see that it really creates hello_ext.pyd:

gcc.link.dll bin\gcc-mingw-3.4.5\debug\hello_ext.lib

    "g++" -L"C:\Python25\libs" -Wl,-R -Wl,"C:\Python25" -Wl,-R -Wl,"C:\Python25\
libs" "-Wl,--out-implib,bin\gcc-mingw-3.4.5\debug\hello_ext.lib" -o "bin\gcc-min
gw-3.4.5\debug\hello_ext.pyd"  -shared -Wl,--start-group "bin\gcc-mingw-3.4.5\de
bug\hello.o" "..\..\..\..\bin.v2\libs\python\build\gcc-mingw-3.4.5\debug\boost_p
ython-mgw34-d-1_35.lib"  -Wl,-Bstatic  -Wl,-Bdynamic -lpython25 -Wl,--end-group
-g

but after some other operations it deletes this file(as i understand it):

RmTemps bin\hello.test\gcc-mingw-3.4.5\debug\hello

    del /f /q "bin\gcc-mingw-3.4.5\debug\hello_ext.pyd"

this is strange, isn't it? how can i tell it to do not delete it?





----- Messaggio originale -----
Da: David Abrahams <dave at boostpro.com>
A: Development of Python/C++ integration <c++-sig at python.org>
Inviato: Martedì 30 settembre 2008, 16:44:44
Oggetto: Re: [C++-sig] Building "hello world" with Boost.Python


on Tue Sep 30 2008, k k <ralvek-AT-yahoo.it> wrote:

> When i run bjam it seams that it builds well, only with some warning, but without
> any error.
> In the tutorial they say that if all is well i should now have built the DLLs.
> But the only things in there are 2 files: hello.o and hello.lib
> I can't use these as python modules, how can i get the DLL? and the .pyd?

Try running bjam with -n -a.  The output will be all the build commands
it used.  Can you see where it created the files you are looking for?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
_______________________________________________
C++-sig mailing list
C++-sig at python.org
http://mail.python.org/mailman/listinfo/c++-sig



      Scopri il blog di Yahoo! Mail:
Trucchi, novità e la tua opinione.
http://www.ymailblogit.com/blog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20080930/cc3210cb/attachment.htm>


More information about the Cplusplus-sig mailing list