Visual Studio错误:程序' [5308] myNewOpenCV.exe'退出时使用代码-1073741701(0xc000007b)

时间:2015-03-12 11:32:40

标签: visual-studio opencv visual-studio-2013

我正在关注this教程,并尝试运行以下代码:

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

using namespace cv;

int main() {

    //Create matric to store image
    Mat image;
    //initialize capture

    VideoCapture cap;
    cap.open(0);

    //create window to show image
    namedWindow("window", 1);

    while (1){

        // copy webcam stream to image
        cap >> image;

        // print image to screen
        imshow("window", image);

        //delay 33ms
        waitKey(33);

    }
}

但是我遇到了以下错误:

'myNewOpenCV.exe' (Win32): Loaded 'C:\Users\Or\Copy\Documents\Visual Studio 2013\Projects\myNewOpenCV\Debug\myNewOpenCV.exe'. Symbols loaded.
'myNewOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'myNewOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'myNewOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
The program '[5308] myNewOpenCV.exe' has exited with code -1073741701 (0xc000007b).

并且程序无法运行。我试图重新安装一些地方建议的opevCV库,但它没有用。 我正在运行Visual Studio 2013版本12.0.21005.1 REL和Windows 7 64位

0 个答案:

没有答案