So I'm trying to compile a C program into a shared library on Windows 10:
I'm trying this compile command from my cmd terminal:
cc -fPIC -shared -o libtest.c test.c
It is based off the command given here: https://www.geeksforgeeks.org/how-to-call-a-c-function-in-python/
I've searched and most things say that gcc is not installed but running:
gcc test.c
in the same directory compiles and creates an executable so I don't know why 'cc' is not recognized.
Last note is I got this to work before but closed out my cmd terminal window and forgot the original command I used to compile with, but I remember using 'cc' then as well.