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
Sam HobbsPosted Aug 10, 2011, 6:49 PM
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.
VulpesPosted Aug 10, 2011, 5:21 AM
This thread (http://stackoverflow.com/questions/6999201/how-to-use-more-dos-commands-in-c) may help in that regard.
Jan DrekaPosted Aug 10, 2011, 5:18 AM
VulpesPosted Aug 10, 2011, 4:47 AM
If it's not in the current directory, you'll need to specify the full path.
Jan DrekaPosted Aug 10, 2011, 4:31 AM
VulpesPosted Aug 10, 2011, 3:58 AM