开发者

Cygwin can't compile my program

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜