代碼:視覺工作室1error LNK2001:解析外部符號_mainCRTStartup,2錯誤LNK1120:1周無法解析的外部
#include "stdafx.h"
#include"highgui.h"
#include"stdio.h"
int main(int argc, CHAR* 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;
}
的可能重複[錯誤LNK2019:解析外部符號的Visual C++(http://stackoverflow.com/questions/849238/error-lnk2019-未解決的外部ymbol-visual-c) –