I have an unusual request. Does anyone know a way to compile a C program from within another program - when the source code to compile is held in an array. In other words is there a gcc function in the c library, like gcc(source_array, output_array);
What I'm trying to avoid is having to put the source code into a file and have it saved on the local hardrive. Instead I would like to be able to just have the c source code read in through the internet (via FTP) and then directly compile it and only ouput a executable file. This is for security reasons mainly to avoid the original source code from having to be saved onto the local server. Anyone know if this can be done?