2011-07-10 47 views
1

代碼:視覺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; 
} 

回答

0

當你與/RTCs for runtime stack checking編譯此功能是必需的。您可以在項目的C/C++編譯器選項中關閉該功能,或修復鏈接時庫列表,以便找到該功能。

我的猜測是你已經手動清除了庫的列表,因爲默認情況下,對於給定的一組compiler options,VS2010應該包含正確的庫。

相關問題