【发布时间】:2016-02-08 17:15:24
【问题描述】:
我正在尝试使用 OpenCV 在 Linux 中编译一个执行 C++ 程序。
当我输入时
g++ -c facedetection.cpp -std=c++11 -o facedetection
facedetection 文件已正确生成。请注意,我使用 -std=c++11 是因为我有一个错误建议这样做。
在执行chmod o+x facedetection 之后,我尝试使用./facedetection 执行它,但出现错误:
bash: ./facedetection: cannot execute binary file: Exec format error
怎么了?
【问题讨论】: