error C3861: 'Py_InitModule'

D

duprez

Hi All,
Using python 3.0, VS2005, WinXP SP3

I know this looks like a simple one but i just installed Python 3.0
(no other Python installations etc) and I'm trying to convert my
perfectly working 2.5 C code for an embedded interpreter to 3.0.
I've changed all of my string functions etc to remove those errors and
I've studied the doc's and searched but I'm still getting the error
regarding Py_InitModule, it's as if it no longer exists but I can't
find anything different in the doc's.
My intellisense and all works fine and all the other python functions
are fine, just this one, does anyone have any ideas? Have I missed a
change that has not made it to the doc's??

thanks,
Mick.
 
D

duprez

Ok, I found the reason, you now need to do a bit more work and use
PyModule_Create().

Also, for anyone else that may stumble on this, you need to refer to
the online Dev doc's that get updated regularly (which I regrettably
forgot about) which are here -> http://docs.python.org/dev/3.0/

thanks,
Mick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,230
Latest member
LifeBoostCBD

Latest Threads

Top