So i have a executable that i have that writes to certain header files storing variables and stuff, then this file is moved to another folder with source to another program.
What i want is a program to call in my compiler (g++) and compile this source and stuff without the user having to having to hand compile from aterminal, a simple execute this program with a click and the compiling is done without typing. But i would i be abble to call my compiler in the c++ code
how would i be able to write "g++ sourcefile.cpp -o outputtedexecutable">
What particular problem are you trying to solve with this approach? Usually programs stay the same and just load data from files. (i.e. what is the "stuff" -- variable could obviously just be read from file.)