- Код: Выделить всё • Развернуть
#include "stdafx.h"
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
int main(int argc, char* argv[])
{
IplImage *img = cvLoadImage("d:\\1.bmp");
cvNamedWindow("Image",1);
cvShowImage("Image", img)
cvWaitKey();
cvDestroyWindow("Image");
cvReleaseImage(&img);
return 0;
}
... а в ответ:
- Код: Выделить всё • Развернуть
Compiling...
89.cpp
c:\program files\microsoft visual studio\vc98\include\cv.h(1055) : error C2061: syntax error : identifier 'CvPoint2D64d'
c:\program files\microsoft visual studio\vc98\include\cv.h(1078) : error C2061: syntax error : identifier 'CvPoint2D64d'
c:\program files\microsoft visual studio\vc98\include\cv.h(1097) : error C2061: syntax error : identifier 'CvPoint3D64d'
c:\program files\microsoft visual studio\vc98\include\cv.h(1112) : error C2061: syntax error : identifier 'CvPoint3D64d'
c:\program files\microsoft visual studio\vc98\include\cvcompat.h(578) : error C2065: 'cvFindChessboardCorners' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\cvcompat.h(579) : error C2065: 'CV_CALIB_CB_ADAPTIVE_THRESH' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\cvcompat.h(603) : error C2065: 'cvCalibrateCamera2' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\cvcompat.h(656) : error C2065: 'cvFindExtrinsicCameraParams2' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\cvcompat.h(695) : error C2065: 'cvRodrigues2' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\cvcompat.h(730) : error C2065: 'cvProjectPoints2' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\cvcompat.h(761) : error C2065: 'cvUndistort2' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\cvcompat.h(837) : error C2664: 'cvFree' : cannot convert parameter 1 from 'struct CvGraphScanner ** ' to 'void ** '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
89.exe - 12 error(s), 0 warning(s)
Подскажите plz чево делать?...