I'm currently developing a gui application in turbo c++ (mandatory) for a project using C language, and i need to invoke turbo c++'s compiler(gcc), my question is HOW DO I CALL IT? i can't find any sources in the internet regarding this.
here's a snippet of my code
int program(){
int opt=-1,j;
char menu[4][20]={"Open File","Compile", "Run","Quit"};
close=1;
dropmenu(menu,10,33,131,105,opt);
do{
showmouse();
getmousepos(&buttonm,&xm,&ym);
if(xm>=10+10&&xm<=131-10&&ym>=33+8&&ym<=105-8&&buttonm==1){
for(j=0;j<(105-33-8)/14;j++)
if((ym-33-8)/14==j){
opt=j;
break;
}
dropmenu(menu,10,33,131,105,opt);
switch(opt){
case 0: openFile(); break;
case 1: compile(); break;
case 2: run(); break;
case 3: delay(100);cleardevice();closegraph();exit(0);
}
}else if(xm>=10&&xm<=34&&ym>=18&&ym<=32&&buttonm==1){
dropmenu(menu,10,33,131,105,opt);
continue;
}else if(buttonm==1){
break;
}
}while(close);
return 0;
}
void openFile() {
}
void compile() {
//i would like to put that invoking here
}
void run() {
}