Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 21994

'cc' is not recognized as an internal or external command [closed]

$
0
0

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.


Viewing all articles
Browse latest Browse all 21994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>