Setting up COBOL Compiler under Mac OS?

旧街凉风 提交于 2019-12-12 08:03:06

问题


In my university, we're being taught COBOL, and I'm trying to get a head start and learn COBOL, C++, and Java before I get into the classes next year.
Problem is; COBOL is so old, it's hard to grab support for it in mac (my laptop is a mac). I understand it runs fine on Mac, but finding someone who can explain how to set up the compiler is another story.


回答1:


You can use brew to install GNU Cobol (Open Cobol). Just type:

brew install gnu-cobol

Then to compile program use:

cobc -x hello.cob

Browse --help for more option (like super nice -free)




回答2:


Is there a particular Cobol you are trying to use. If not try

  • Open Cobol

There are some very old notes for the mac here but you might be better off asking a question in the Open Cobol Help forum.

The Open-Cobol project are currently collecting sample cobol programs which might be useful to you.



来源:https://stackoverflow.com/questions/18929237/setting-up-cobol-compiler-under-mac-os

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!