the IDE creates the exe:
- if i run on IDE, i will get a GNU compiler exe;
- if i run on folder, i will not get the problem...
so i belive the problem is on Current Working Directory... so what you can advice me?
like i said:
- if i run the exe, on folder, everything works normal;
- if i run the exe, on Code Blocks, the run() don't works fine, because of: string FileName1="C:\\Program Files\\mingw-w64\\x86_64-7.2.0-win32-seh-rt_v5-rev1\\mingw64\\bin\\x86_64-w64-mingw32-g++.exe";
Current Directory... i belive, the problem here, is the Current Directory
(i can't give you the error message, because it's too fast.... if i use cmd, i will not get the problem)
And it runs fine, and an object file is created. I'm not sure, sorry.
I would say try starting simpler, and execute a simple program that prints its arguments and then pauses, so that the program doesn't disappear as soon as it loads.
yes i tested on just that code and works... maybe the run() is done before the *.cpp file been created... i must see my way of testing if the file is created...
after several tests i found the big problem: Compile.compile(strCompile,"test.cpp");
like you see, i don't use the folder name here... but after i fix it: Compile.compile(strCompile,"C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test.cpp");
the program works fine... thank you so much for all