Original Post
What would be the easiest way to generate executable files from a file? say i got my generator.exe and depending on input want to compile either
#include <iostream>
int main() { std::cout <<"Foo" <<endl; }
or
#include <iostream>
int main() { std::cout <<"Bar" <<endl; }
One way would be to just generate a source-file and then using cl.exe and link.exe from the visual toolkit, but i wonder if there's another way.