OpenCOBOL是一个开源的COBOL编译器。其原理是把COBOL代码转换为C代码,然后使用gcc编译。
详见官方网站:
http://www.opencobol.org/
OpenCOBOL 需要以下库:
- GNU MP (libgmp) 4.1.2 or later
- libgmp is used to implement decimal arithmetic.
GNU MP is licensed under GNU Lesser General Public License.
- GNU Libtool (libltdl)
- libltdl is used to implement dynamic CALL statements.
GNU Libtool is licensed under GNU Lesser General Public License.
可选库:
- Berkeley DB (libdb) 1.85 or later
- libdb can be used to implement indexed file I/O and SORT/MERGE.
Berkeley DB is licensed under the original BSD License (1.85) or their own open-source license (2.x or later). Note that, as of 2.x, if you linked your software with Berkeley DB, you must distribute the source code of your software along with your software, or you have to pay royalty to Sleepycat Software, Inc.
- Ncurses (libncurses) 5.2 or later
- libncurses can be used to implement SCREEN SECTION.
Ncurses is licensed under a BSD-style license.
安装:
$ ./configure
$ make
$ make install
Trackback: http://tb.donews.net/TrackBack.aspx?PostId=1140768