By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,496 Members | 1,517 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,496 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?

Dec 8 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
iwl wrote:
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>

Dec 8 '06 #2

P: n/a
iwl

Fredrik Lundh schrieb:
>
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 <Python.h>
(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.hand 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.

Dec 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.