>> Link Error 2038:

1>PyCXX.lib(cxx_extensions.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in simple.obj
1>PyCXX.lib(cxxsupport.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in simple.obj

 

1>s:/Lib/Release_x64/simple.pyd : fatal error LNK1319: 2 mismatches detected

 

>> Reason:

Project Properties -- Code Generation -- Runtime library

PyCXX:   Multi-threaded Debug DLL (/MDd)

Simple:   Multi-threaded DLL (/MD)

 说白了就是PyCXX的Code Generation设置与Simple不匹配。

 

>> Solution:

PyCXX:   Multi-threaded DLL (/MD)

Simple:   Multi-threaded DLL (/MD)

搞匹配就好了。

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-08-09
  • 2021-07-17
猜你喜欢
  • 2021-08-16
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2021-11-15
相关资源
相似解决方案