c ++ call numpy error

When calling python C ++ program, the following problems occur:

Unresolved external symbol __imp___Py_RefTotal    

Unresolved external symbols __imp___Py_NegativeRefcount, the symbol is referenced in the function __import_array  

  

This is due to the installation of python to Release version, and your C ++ project Debug mode, so changing your project to Release mode.

Also note that, to distinguish between 32-bit and 64-bit

Published 142 original articles · won praise 14 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_30460949/article/details/103050007
Recommended