Magick++ linking error

后端 未结 1 1467
[愿得一人]
[愿得一人] 2021-01-21 22:07

I have here a simple image converter code using Magick++(ImageMagick interface) library.(Eclipse IDE)

#include 
#include 
#inclu         


        
相关标签:
1条回答
  • 2021-01-21 22:50

    Try inverting the Magick libraries, add the MagickWand library (and put libz and other base image libraries at the end, and the dynamic linker library while you're at it):

    ... -lpthread -lMagick++ -lMagickWand -lMagickCore -lz -ldl
    

    See Linker Order - GCC for why the order of static libraries matters.

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