Thursday 6 April 2017

computer vision - visual studio 1error LNK2001: unresolved external symbol _mainCRTStartup,2 error LNK1120: 1 unresolved externals

code:



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

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...