Thursday, January 7, 2010

Compile All C Programs in a Dir in DOS

Using the following command in MS-DOS/windows cmd, you can compile all the C programs. (Provide your paths instead of f:\c\turboc\lib and f:\c\turboc\include)

for %i in (*.c) do tcc -Lf:\c\turboc\lib -If:\c\turboc\include %i

0 comments:

Post a Comment