Jan Dreka

Jan Dreka

  • NA
  • 5
  • 1.8k

Process.Start problem

Aug 10 2011 2:06 AM
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.

Answers (6)