Boost logo

Boost Users :

From: gchen (chengang31_at_[hidden])
Date: 2008-02-10 07:42:35


Robert Dailey wrote:
> On Feb 8, 2008 9:06 AM, David Abrahams <dave_at_[hidden]
> <mailto:dave_at_[hidden]>> wrote:
>
> You can always link your DLL extension module
> directly to your application as well as letting Python load it.
>
>
> Explain please. Also, I don't want to use a DLL, as I already mentioned.
> I want there to be my python scripts and my game executable, that's it.
> I don't want a DLL and a game executable. I want this to remain simple.
> As I originally asked, is there a way to do this? Do I load my exe as a
> pyd module or what?
>

You can try the example "embedding" in Boost.Python:

http://svn.boost.org/svn/boost/trunk/libs/python/example/quickstart/embedding.cpp

if you compile (and link to) boost as a static library, you will get
only an
EXE and a python script, no extra DLL.


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