foo.cpp不是可执行格式:Eclipse CDT中的文件格式无法识别错误

时间:2015-02-24 16:18:03

标签: c++ opencv eclipse-cdt ubuntu-14.04

我是 opencv Eclipse 的新手。我已复制此链接中的代码:
http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html#linux-eclipse-usage

#include <cv.h>
#include <highgui.h>

using namespace cv;

int main( int argc, char** argv )
{
    Mat image;
    image = imread( argv[1], 1 );

    if( argc != 2 || !image.data )
    {
        printf( "No image data \n" );
        return -1;
    }

  namedWindow( "Display Image", CV_WINDOW_AUTOSIZE );
  imshow( "Display Image", image );

  waitKey(0);

  return 0;
}

编译成功后,在调试时,我收到以下错误信息:

Error in final launch sequence
Failed to execute MI command:
-file-exec-and-symbols /home/jeni/workspace/FusionImage/src/FusionImage.cpp
Error message from debugger back end:
"/home/jeni/workspace/FusionImage/src/FusionImage.cpp": not in executable format: File format not recognized
"/home/jeni/workspace/FusionImage/src/FusionImage.cpp": not in executable format: File format not recognized  

我在Ubuntu 14.04 LTS上使用它 我为什么要这个?以及如何解决这个问题?

0 个答案:

没有答案