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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -