Click here to Skip to main content
11,494,851 members (51,655 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Visual-Studio OpenCV
i have the below code to build/debug the project, but it gives me this error

fatal error LNK1104: cannot open file 'C:\OpenCV2.0\lib\cv200.lib'
As i have successfuly add my **lib**,"**include**" and"**src**" etc but it still gives me an error,
code is :
     #include "stdafx.h"
     #include "cv.h"
     #include "highgui.h"
    int main() 
 	IplImage* img = cvLoadImage("C:\\my_img.jpg",1);
        cvNamedWindow( "test", CV_WINDOW_AUTOSIZE );
        cvShowImage( "test", img );
        cvReleaseImage( &img );
	return 0;

is there any "path" problem, i have include my open cv path also in system OpenCV2.0 is install in this Folder

Posted 14-Jan-13 6:37am
Edited 14-Jan-13 11:51am
Sergey Alexandrovich Kryukov at 14-Jan-13 14:37pm
Where did you specify the path to cv200.lib for your project to access the library? Did you do it at all?
PIR FAHIM SHAH at 14-Jan-13 15:01pm
i have cv200.lib in its specific location like
project properties-->Linker-->input
here in this location i have add all the libraries name

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

it is "path" problem.Please reset.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 Sergey Alexandrovich Kryukov 350
2 CHill60 318
3 Sascha Lefèvre 280
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,297
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,864
3 Maciej Los 3,412
4 Richard Deeming 2,500

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 24 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100