Ask Your Question

cannot open input file ‘opencv_core242.lib’ ??

asked 2013-09-28 10:23:23 -0500

updated 2013-09-29 07:26:37 -0500

berak gravatar image

i got an error “Error 1 error LNK1181: cannot open input file ‘opencv_core242.lib’ ” please help me out…

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2013-09-29 05:21:37 -0500

FLY gravatar image

updated 2013-09-29 05:24:30 -0500

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

For example

#ifdef DEBUG
 #pragma comment (lib , "opencv_core242d.lib")
 #pragma comment (lib , "opencv_core242.lib")

you can also check here

edit flag offensive delete link more


Have the same issue with open cv 3.1.0 and i'm sure that i gave the right d,rectories and linked with the right libs but continued to get the error. any suggestions?

busrakkk gravatar imagebusrakkk ( 2016-01-18 07:01:04 -0500 )edit

Question Tools


Asked: 2013-09-28 10:23:23 -0500

Seen: 2,135 times

Last updated: Sep 29 '13