Ask Your Question
0

error while trying to run

asked 2013-09-29 01:58:26 -0600

Error 1 error LNK1104: cannot open file 'opencv_calib3d246d.lib' C:\Users\appu\documents\visual studio 2010\Projects\opencv1\opencv1\LINK opencv1 this is the error message while running the code please help me in resolving this

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2013-09-29 05:18:06 -0600

FLY gravatar image

updated 2013-09-29 05:25:11 -0600

You're not linking with required library. You need to check that which mode your using debug or release . opencv_calib3d246d.lib is use for debug mode , and for release you need to use the same without d like opencv_calib3d246.lib

For example

#ifdef DEBUG
 #pragma comment (lib , "opencv_calib3d246d.lib")
#else
 #pragma comment (lib , "opencv_calib3d246.lib")
#endif

You can also get help from here

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-29 01:58:26 -0600

Seen: 619 times

Last updated: Sep 29 '13