Using Py_InitModule3 -> [Linker Error] Unresolved external '_Py_InitModule4TraceRefs'

I

iwl

Hello

I copied the code from the Extending Embedded Python section in the
Python 2.5 but get an linker Error Unresolved external
_Py_InitModule4TraceRefs.
Who knows what's wrong?
 
F

Fredrik Lundh

iwl said:
I copied the code from the Extending Embedded Python section in the
Python 2.5 but get an linker Error Unresolved external
_Py_InitModule4TraceRefs.
Who knows what's wrong?

you've mixed components compiled with Py_TRACE_REFS with components that
aren't compiled with Py_TRACE_REFS. don't do that.

(what is it with you C programmers these days, btw? have they stopped
teaching how to how use "grep" and library inspection tools when they
teach C and C++ ?)

</F>
 
I

iwl

Fredrik said:
you've mixed components compiled with Py_TRACE_REFS with components that
aren't compiled with Py_TRACE_REFS. don't do that.
H'm does this mean I have to write something like
#define Py_TRACE_REFS
befor I include said:
(what is it with you C programmers these days, btw? have they stopped
teaching how to how use "grep" and library inspection tools when they
teach C and C++ ?)
I'm afraid so - I haven't teach me anything about grep yet.

I just downloaded the Phyton 2.5 Windows-Installer including C-Libs and

Headers and include <Python.h> and linked Python25.lib after some
conversion needed for Borland C++ Builder 6 und tryed the embedded
Demo. In the Phyton module include file I red something that this
happens
when size_t_size != sizeof_int.
 

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,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top