Hi. I'm making small application what will do c++ programs compiling easier. I have this code:
System.Diagnostics.Process.Start("C:\\Alps\\compiler\\H-i586-cygwin32\\bin\\g++.exe", "-c Main.cpp -o main.o ");
This code should start
g++.exe
with arguments
-c Main.cpp -o main.o
for compiling main cpp file to o file. Can you see any error in my code? Why it does not works? When I will click to button what contains this code, nothing happens. Main.cpp file is there and g++.exe too. Path is good.
Loading

VulpesRank #55 · 29.2K reputationPosted Aug 9, 2011, 11:58 PM EDT
Jan Dreka5 reputationPosted Aug 10, 2011, 12:31 AM EDT
VulpesRank #55 · 29.2K reputationPosted Aug 10, 2011, 12:47 AM EDT
If it's not in the current directory, you'll need to specify the full path.
Jan Dreka5 reputationPosted Aug 10, 2011, 1:18 AM EDT
VulpesRank #55 · 29.2K reputationPosted Aug 10, 2011, 1:21 AM EDT
This thread (http://stackoverflow.com/questions/6999201/how-to-use-more-dos-commands-in-c) may help in that regard.
Sam HobbsRank #108 · 20.5K reputationPosted Aug 10, 2011, 2:49 PM EDT
Or a better diagnostic tool would be to redirect the standard output; look at the articles in this web site for articles about that. It will require a bit of work, but it is nearly certainly something you will want to do anyway. It is fundamental to the type of thing you are doing.