How to Compile a C program in C? -
i making program in c can produce c code.
how to, using first program, compile , run second program after second program has been produced?
one way used system()
call ...
system("cl generated_file.c -o gen_exe") ; system("./gen.exe");
or
system("gcc generated_file.c -o gen.exe"); system("./gen.exe");
or use simle batch or script or makefile this
Comments
Post a Comment