Use Python.h to C Script with GCC and CLANG Compiler

preview_player
Показать описание
gcc -std=c99 -ggdb3 -O0 -pedantic-errors -Wall -Wextra \
'test.c' $(python3-config --embed --ldflags)

If using clang, you just need to change the GCC compiler to Clang.

Source code Ex:
Рекомендации по теме