小编JP_*_*_99的帖子

在 ubuntu 上使用 gnu cobol 编译 Windows (.exe) 可执行文件

我需要将我在 .cobc 文件中编写的程序编译为 Windows 可执行文件。该文件名为 main.cobc
使用以下命令进行编译: cobc -x -free *.cobc -o main
使其成为 Linux 可执行文件,这是可以的,但不能直接在 Windows 上运行。
我在我的 linux ubuntu 虚拟机上安装了 gnucobol (OpenCOBOL)。
请帮忙。有没有办法以与 Windows 兼容的方式编译它?

提前致谢!

linux cross-compiling gnucobol

4
推荐指数
1
解决办法
1141
查看次数

在C#中有效地将字符串转换为字节数组(不使用编码)

如何在不使用每个元素的情况下将字符串转换"0100"byte数组?该字符串只能包含字符0到9.{0,1,0,0}Convert.ToByte()

c# arrays string byte type-conversion

-2
推荐指数
1
解决办法
181
查看次数

标签 统计

arrays ×1

byte ×1

c# ×1

cross-compiling ×1

gnucobol ×1

linux ×1

string ×1

type-conversion ×1