我有 64 位 ubuntu 虚拟机和 64 位二进制文件,但仍然出现 Exec 格式错误。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
$ uname -a
Linux shrikant-VirtualBox 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ file ../Mingw_instatllation/bin/x86_64-w64-mingw32-g++
../Mingw_instatllation/bin/x86_64-w64-mingw32-g++: Mach-O 64-bit x86_64 executable
$ ../Mingw_instatllation/bin/x86_64-w64-mingw32-g++ test.cpp
bash: ../Mingw_instatllation/bin/x86_64-w64-mingw32-g++: cannot execute binary file: Exec format error
有人可以告诉我一个好的 mingw 工具链或者给出解决此问题的建议吗?