Visual c++ 目视研究10错误LNK2019:未解析的外部符号@\u RTC_CheckStackVars@8在函数\u wmain中引用

Visual c++ 目视研究10错误LNK2019:未解析的外部符号@\u RTC_CheckStackVars@8在函数\u wmain中引用,visual-c++,Visual C++,代码: 使用编译时需要此函数。您可以在项目的C/C++编译器选项中关闭该选项,或者修复链接时间库列表,以便找到该函数 我的猜测是,您已经手动搜索了库列表,因为默认情况下VS2010应该包含一组给定库的正确库 // displayvideo.cpp : Defines the entry point for the console application. #include "stdafx.h" #include"stdio.h" #include "highgui.h" int _tma

代码:


使用编译时需要此函数。您可以在项目的C/C++编译器选项中关闭该选项,或者修复链接时间库列表,以便找到该函数

我的猜测是,您已经手动搜索了库列表,因为默认情况下VS2010应该包含一组给定库的正确库

// displayvideo.cpp : Defines the entry point for the console application.

#include "stdafx.h"

#include"stdio.h"
#include "highgui.h"


int _tmain(int argc, _TCHAR* argv[])
{
    cvNamedWindow:( "Example2", CV_WINDOW_AUTOSIZE );
    CvCapture* capture = cvCreateFileCapture( "tendulkar.avi" );
    IplImage* frame;
    while(1) {
        frame = cvQueryFrame( capture );
        if( !frame ) break;
        cvShowImage( "Example2", frame );
        char c = cvWaitKey(33);
        if( c == 27 ) break;
    }
    cvReleaseCapture( &capture );
    cvDestroyWindow( "Example2" );
    return 0;
}