在Mac OS下设置COBOL编译器? [英] Setting up COBOL Compiler under Mac OS?

查看:297
本文介绍了在Mac OS下设置COBOL编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的大学里,我们正在接受COBOL的教学,而我正试图在明年上课之前先入门并学习COBOL,C ++和Java.
问题是; COBOL太旧了,很难在Mac中获得对它的支持(我的笔记本电脑是Mac).我了解它在Mac上运行良好,但是找到另一个可以解释如何设置编译器的人则是另一回事.

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.

推荐答案

您可以使用brew安装GNU Cobol(Open Cobol).只需输入:

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

brew install gnu-cobol

然后编译程序使用:

cobc -x hello.cob

浏览--help获取更多选项(例如超级好玩的-free)

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

这篇关于在Mac OS下设置COBOL编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆