Добрый вечер, столкнулся с такой проблемой после компиляции Python кода в CC при помощи Cython,
в файле main.c, не может найти файл Python.h и другие файлы .h, как можно решить данную проблему ?
Пытался в Visual Studio Code импортировать liblary с всеми .h
Но все-равно выдает ошибку:
Executing task: C/C++: gcc.exe build active file <
Starting build...
Build finished with errors(s):
In file included from C:\Users\Paffos\Desktop\code\Python.h:85:0,
from C:\Users\Paffos\Desktop\code\main.c:4:
C:\Users\Paffos\Desktop\code\pytime.h:123:59: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
PyAPI_FUNC(int) _PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv);
^~~~~~~
C:\Users\Paffos\Desktop\code\pytime.h:130:12: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
struct timeval *tv,
^~~~~~~
C:\Users\Paffos\Desktop\code\pytime.h:135:12: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
struct timeval *tv,
^~~~~~~
In file included from C:\Users\Paffos\Desktop\code\pystate.h:143:0,
from C:\Users\Paffos\Desktop\code\genobject.h:11,
from C:\Users\Paffos\Desktop\code\Python.h:123,
from C:\Users\Paffos\Desktop\code\main.c:4:
C:\Users\Paffos\Desktop\code\cpython/pystate.h:9:32: fatal error: cpython/initconfig.h: No such file or directory
#include "cpython/initconfig.h"
^
compilation terminated.
The terminal process terminated with exit code: -1.
Terminal will be reused by tasks, press any key to close it.
Заранее спасибо!