Ask Your Question

error while trying to run

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

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

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

FLY gravatar image

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

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")
 #pragma comment (lib , "opencv_calib3d246.lib")

You can also get help from here

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


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

Seen: 526 times

Last updated: Sep 29 '13