I am making a game engine editor and I would like the user to be able to build the game from within the editor. To do this they obviously need to run a compiler, such as gcc, with some flags.
Considering the editor is written in C# and is cross-platform (using Mono) what is a good way to run gcc from within the program?
I have heard of System.Diagnostics.Process.Start(); but does this work in mono and is somewhat cross platform? Can you add flags with it?
EDIT: The actual game (not the editor) is written in c++ and requires gcc.
The Process class is cross-platform, yes.
You may want to look on how the C/C++ binding of MonoDevelop calls the compiler behind the scenes. The sources are here