Ask Your Question
0

Opencv_2.4.9 with Visual Studio error message

asked 2014-11-01 13:46:24 -0600

iggyfur gravatar image

After linking libraries from openpc 2.4.9 with visual studio 2010, I build and ran a program and got this error message. error C1075: end of file found before the left brace '{'at ' c:\users\iggy\documents\visual studio 2010\projects\open_cv_test\open_cvtest\main.cpp(6)' was matched. any help would be appreciated. iggy

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-01 14:55:13 -0600

You forgot a '}'. Could you show the code?

edit flag offensive delete link more

Comments

include <opencv\cv.h>

include <opencv\highgui.h>

using namespace cv;

int main(){

{

IplImage* img = cvLoadImage( "C:\Users\9589693153\Desktop\Vids\sqlite.png" ); //change the name (image.jpg) according to your Image filename.

cvNamedWindow( "Example1", CV_WINDOW_NORMAL ); cvShowImage("Example1", img); cvWaitKey(0);

cvReleaseImage( &img );

cvDestroyWindow( "Example1" );

return 0;

}

iggyfur gravatar imageiggyfur ( 2014-11-06 18:29:51 -0600 )edit

visual studio 2010

iggyfur gravatar imageiggyfur ( 2014-11-11 00:13:50 -0600 )edit

Question Tools

Stats

Asked: 2014-11-01 13:46:24 -0600

Seen: 125 times

Last updated: Nov 01 '14