I’m trying to compile a C code in a file from a program in C++. When I run my program it call the Tiny C Compiler and generate a dll from the compilation of c code.
I tried to do it by a lot of ways but I couldn’t. Did anyone already do something like this?
Thanks
What platform are you on?
On most platforms, you can use the C standard library’s
system()function to launch a separate process from your C++ program.This will block until the spawned process exits.
On Windows, if you’re not concerned about portability, you can use
CreateProcess().