I have a programm which I want to call gpp to compile a c++ program but I can't do this. When I run the program, I get the message:
foo.hs: g++: createProcess: permission denied (Permission denied)
What can I do to fix this?
foo.hs is a small haskell script which call g++ it looks like:
import System.Cmd
main = do
system "g++ -c test.cpp"
putStrnLn "done"开发者_开发技巧
I'd guess this happens because 'g++' is a Cygwin symlink yet Haskell isn't a Cygwin program. Try invoking 'g++-3' or 'g++-4' directly.
精彩评论