The application was unable to start correctly (0xc00000be)

社会主义新天地 提交于 2019-12-23 00:52:44

问题


I installed OpenCV 2.4.0 in codeblocks IDE with help of this link in my windows 32bit pc. I follow the all the steps properly I think.

when I run the following code it works well:

#include "opencv2/highgui/highgui.hpp"
#include <iostream>

using namespace cv;
using namespace std;

int main()
{
   cout<<"Hello"<<endl;

    return 0;

}

But when i run this code it shows that The application was unable to start correctly (0xc00000be)

#include "opencv2/highgui/highgui.hpp"
#include <iostream>

using namespace cv;
using namespace std;

int main()
{

    cv::Mat im = cv::imread("m.jpg");

    if (im.empty())
    {
        cout << "Cannot open image!" << endl;
        return -1;
    }

    cout<<"image is showing.......\n";

    cv::imshow("image", im);

   // waitKey(0);

   cout<<"Hello"<<endl;

    return 0;
}

Is there any other configuration for working well with opencv in codeblocks.

I googled and find that it is not a problem of configuring rather problem of windows. I stuck many hours of googling and find nothing helpfull.


回答1:


You might need to compile openCV with the same compiler you're using to compile the program. It looks like someone found a solution to the same problem here: http://answers.opencv.org/question/30343/application-unable-to-start-correctly/



来源:https://stackoverflow.com/questions/19239709/the-application-was-unable-to-start-correctly-0xc00000be

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!