Is there a way to compile all the files .cin a given folder using the command line with the GCC compiler?I saw this page for Linux: http://www.commandlinefu.com/commands/view/3230/compile-all-c-files-in-a-directory , but could not find the equivalent for CMD.
.c
I think gcc itself does not have such a parameter.
But you can try the usual substitution argument gcc *.c -o Output, where *(wildcard) should read like "any."
gcc *.c -o Output
*
:
gcc -c -Wall file1.c file2.c file3.c
. -Wall .
, .