Ask Your Question
0

cannot open input file ‘opencv_core242.lib’ ??

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

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

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
1

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

FLY gravatar image

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

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

you can also check here

edit flag offensive delete link more

Comments

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 -0600 )edit

Question Tools

Stats

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

Seen: 2,269 times

Last updated: Sep 29 '13