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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • iwl

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

    Hello

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

  • Fredrik Lundh

    #2
    Re: Using Py_InitModule3 -> [Linker Error] Unresolved external'_Py_In itModule4TraceR efs'

    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_InitModule4 TraceRefs.
    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>

    Comment

    • iwl

      #3
      Re: Using Py_InitModule3 -&gt; [Linker Error] Unresolved external '_Py_InitModule 4TraceRefs'


      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.

      Comment

      Working...