GitHub

[Hybrid1 Log5] From Python Call C/C++ Function : Parse int, float, str

Code Nara 2018. 7. 30. 23:33















CPython only: add Py_LIMITED_API; to the beginning of the string (including the semicolon). This definition restricts some of the functions you can call from Python and makes the code more portable between different versions of Python. If you're working with PyBind11, don't add this definition, otherwise you'll see build errors.







Add the Python libs folder containing .lib files






Working with C++ requires that you use a 32-bit Python interpreter (Python 3.6 or above recommended).




Python1 Project : Add Reference






< 참고 >


Extending and Embedding the Python Interpreter

Creating a C++ extension for Python

Python - Extension Programming with C