# Absolute Minimal Example This is on Linux. As I write this I'm not sure how things are different with Windows, Cygwin and macos. The C (in `mylib.c`): ```c #include void print_number(int n) { printf("%d\n",n); } ``` Compile with ```bash gcc -shared -o mylib.so mylib.c ``` The Python ```py import ctypes lib = ctypes.cdll.LoadLibrary("./mylib.so") lib.print_number(42) ```