Let's say we've got a first program called Program1.exe
which contains the necessary information to create and compile another application called Program2.exe
. Actually it could also load that information from a txt file or whatever.
Googling, I've found that this is "easy" to do in C#
, using Visual Studio:
How to programatically build and compile another c# project from the current project
Programmatically Invoke the C# Compiler
The problem is that I'm not using (and can't use) C#
, but C++
. Summing it up, my question is if that I can do this same thing using C++
.
I would prefer to do it without additional libraries, but if that's not possible, or if it's too hard to do, you can also recommend any library allowing it.
I think you'll probably have noticed it, but my goal is to use it under Windows so I don't care if it's not portable.
Thanks everybody.