Visual Studio10 错误 LNK2019:未解析的外部符号 @_RTC_CheckStackVars@8 在函数 _wmain 中引用 [英] visual studio10 error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function _wmain

查看:107
本文介绍了Visual Studio10 错误 LNK2019:未解析的外部符号 @_RTC_CheckStackVars@8 在函数 _wmain 中引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码:

// 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;
}

推荐答案

使用 /RTCs 用于运行时堆栈检查.您可以在项目的 C/C++ 编译器选项中关闭它,或者修复链接时库列表,以便可以找到该函数.

This function is required when you compile with /RTCs for runtime stack checking. You could turn that off in your project's C/C++ compiler options, or fix up your link-time library list so that the function can be found.

我的猜测是您手动修改了库列表,因为默认情况下 VS2010 应该为给定的一组 编译器选项.

My guess is your have manually munged the list of libraries, since by default VS2010 should include the right ones for a given set of compiler options.

这篇关于Visual Studio10 错误 LNK2019:未解析的外部符号 @_RTC_CheckStackVars@8 在函数 _wmain 中引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆