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)
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