[Stackless] Embedding Stackless on Windows

Lloyd Weehuizen lloyd at fusion.net.nz
Sun Jul 30 23:17:10 CEST 2006


Hi Rob

You're correct in assuming you need to include stackless_api.h. You also 
need to make sure that the stackless subdirectory directory is in your 
compilers include path.

I have Stackless/Include, Stackless/PCBuild, Stackless/Stackless

Let me know if that helps :)

Cheers,
Lloyd

Rob Smith wrote:
> Hi,
> 
> I'm new to both Python and Stackless, and have recently begun a
> project in which I am embedding Python in a C++ project for the
> Windows platform.
> 
> My simple question is: which header should I #include to make the
> Stackless functions accessible from C++?
> 
> When I was using Python 2.4, I just had to include 'python.h', and I
> was good to go. I just used the precompiled binaries and header files
> that were neatly packaged.
> 
> For Stackless, I found that the precompiled binaries (for Windows)
> didn't include header files, so I grabbed them via subversion, and
> thought that if I included 'stackless.h', then I would be good to go -
> but this didn't include the function declarations (such as
> PyStackless_Call_Main).
> 
> I also tried including 'stackless_api.h', but it looks like this
> shouldn't be included directly (many compile errors).
> 
> Apologies in advance for asking such a trivial question, but I don't
> know who else to ask,
> 
> Rob Smith
> 
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list