Trying to invoke cc compiler

2.8k views Asked by At

Very basic question here. I am just starting out with C coding using Csound.

I am trying to invoke the compiler via instructions from a tutorial book.

It says open console window and type this command "cc mysource.c"

This is seemingly meant to invoke the compiler but I get this error message


C:\Program Files\Csound6_x64\bin>cc mysource.c

'cc' is not recognized as an internal or external command,
operable program or batch file.

Do I need to download any software to get this to work?

Thanks!

1

There are 1 answers

4
Dock On BEST ANSWER

cc was a compiler for Unix. It doesn't come with Windows, and you probably want to use gcc instead because it is used much more. You must set up MinGW and add it to PATH. Following this guide will help: youtube.com/watch?v=sXW2VLrQ3Bs

You can then compile C using gcc mysource.c