编译后我无法 运行 ActiveMQ 的 C-OpenWire 客户端
I can not run C-OpenWire client for ActiveMQ after compilation
我正在尝试使用 OpenWire 在 C 中为 ActiveMQ 开发客户端,并在 Ubuntu 上为 OpenWire ActiveMQ 编译示例 main 后,当我尝试 运行 它时,我得到了这个错误:
bash: ./test: cannot execute binary file: Exec format error
我在 ubuntu 32 位和 46 位上都试过了,但没用
有什么想法吗?
除了 OpenWire 之外,还有其他 C 语言替代品吗?
问题是 -c
标志,因为它告诉 gcc
生成一个 object 文件而不是一个可执行文件。
移除-c
标志:
gcc main.c -o test
我正在尝试使用 OpenWire 在 C 中为 ActiveMQ 开发客户端,并在 Ubuntu 上为 OpenWire ActiveMQ 编译示例 main 后,当我尝试 运行 它时,我得到了这个错误:
bash: ./test: cannot execute binary file: Exec format error
我在 ubuntu 32 位和 46 位上都试过了,但没用
有什么想法吗?
除了 OpenWire 之外,还有其他 C 语言替代品吗?
问题是 -c
标志,因为它告诉 gcc
生成一个 object 文件而不是一个可执行文件。
移除-c
标志:
gcc main.c -o test