getting problem to call function from static library

asked 2015-05-18 08:31:02 -0600

Akki gravatar image

updated 2015-05-18 08:44:41 -0600

berak gravatar image

hello,

I have made one static library for some function and i want to call that function in another project. but I am getting error like :

InitializeBuildStatus: 1> Touching "Debug\callplazma.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>c:\users\ankit\documents\visual studio 2010\projects\callplazma\callplazma\plazma.h(2): fatal error C1083: Cannot open include file: 'opencv2/core/core.hpp': No such file or directory 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.07 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

please help me how can I solve this problem.

if I add again all libraries in linker in new project than its work fine but, i think its not right concept as I already make one static library.

Thank you very much in advance.

edit retag flag offensive close merge delete

Comments

1

this has nothing to do with libraries, static or not.

your compiler can't find a header file.

properties -> c++ -> general -> "Additional Include Dirs" - set to your/opencv/build/include

berak gravatar imageberak ( 2015-05-18 08:44:09 -0600 )edit