c++ - 在 solaris 中运行可执行的 c++ 程序

标签 c++ solaris

我在 Solaris 中正确编译了我的类 Transfer。有可执行文件transfer。如果我在 Linux 中,我会 ./transfer 并且程序会完美执行。但是,当我在 Solaris 中运行 ./transfer 时,我得到:

bash: ./transfer: invalid argument

有人知道如何在 Solaris 中运行可执行文件吗?

最佳答案

听起来编译是针对与主机不同的架构完成的。

查看相关主题 - x86 binary on a SPARC machine .

关于c++ - 在 solaris 中运行可执行的 c++ 程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11661689/

相关文章:

python - 从 Python 脚本运行 vi

c++ - C++ 如何将事物保持在范围内?

c++ - 将 haskell 解释器(提示)构建为动态库,可从 C++ : Missing Interpreter. dyn_hi 使用

c++ time() 函数在 solaris 中的性能

Solaris 上的 C 套接字选择错误

solaris - 在 Solaris 网络库中进行 autoconf 链接的规范方法是什么?

c++ - ReadInt32、BinaryReader、C++

C++ 内联汇编函数无法正常工作

c++ - 我应该为 memcpy 和 realloc 包含什么标题?

c - 在 C 中打印环境