开发者

Cygwin can't compile my program

开发者 https://www.devze.com 2023-02-24 04:21 出处:网络
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:

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

精彩评论

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