Выполняю такой батник:
set PROJECT_NAME=program
set PYTHON_DIR=C:\Users\<user>\AppData\Local\Programs\Python\Python39
%PYTHON_DIR%\python -m cython --embed -o %PROJECT_NAME%.c %PROJECT_NAME%.py
gcc -Os -I %PYTHON_DIR%\include -o %PROJECT_NAME%.exe %PROJECT_NAME%.c -lpython39 -lm -L %PYTHON_DIR%\libs
По итогу вылезает ошибка:
program.c -lpython39 -lm -L C:\Users\<user>\AppData\Local\Programs\Python\Python39\libs
program.c:203:41: warning: division by zero [-Wdiv-by-zero]
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
^
program.c:203:12: error: enumerator value for '__pyx_check_sizeof_voidp' is not an integer constant
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
Как решить ее?