CImg icon indicating copy to clipboard operation
CImg copied to clipboard

Library fails to compile on Linux?

Open ghost opened this issue 4 years ago • 2 comments

I don't know why, but there's a LOT of undefined references to `XOpenDisplay'

ghost avatar Sep 08 '21 10:09 ghost

You have to link your executable against libX11 and libpthread, which means adding -lX11 -lpthread to the compilation command line (if you use g++). Otherwise, you may want to disable the display capabilities of CImg, by setting cimg_display=0.

dtschump avatar Sep 08 '21 12:09 dtschump