So I'm trying to compile my cython chess.pyx file into an exe but I'm getting errors when I try to pass through the python libs folder. I've tried 2 different paths which I found for how to compile the code but both return the same error:
gcc chess.c -I C:\Python38\include -l C:\Python38\libs -o chess.exe
and
gcc chess.c -I C:\Python38\include -l python38 -o chess.exe
They give the error:
C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lpython38
collect2.exe: error: ld returned 1 exit status
Does anyone know how I can fix this?