opencv : unresolved external symbol

前端 未结 2 1330
無奈伤痛
無奈伤痛 2021-01-03 05:57

I know this question is all over the place, but still the magic stick of adding the library directories to the project properties is not working for me.

I followed t

相关标签:
2条回答
  • 2021-01-03 06:41

    I added $(OPENCV_DIR)\staticlib to Library Directories and also to Linker->Additional Library Directores and added the following to Linker->Input->Additional Dependencies:

    ippicvmt.lib
    IlmImfd.lib
    libtiffd.lib
    libpngd.lib
    libjasperd.lib
    libjpegd.lib
    libwebpd.lib
    zlibd.lib
    comctl32.lib
    

    And the example now works.

    0 讨论(0)
  • 2021-01-03 06:45

    Unfortunately that solution did not work for me. For those in a similar situation:

    It can work by adding as additional dependencies(Linker -> Input -> Additional Dependencies:) only those libraries located in my $(OPENCV_DIR)\lib folder. Namely: opencv_ts300d.lib;opencv_world300d.lib.

    0 讨论(0)
提交回复
热议问题