CImg X11 Linking Error using CLion and CMake
问题 I have a C++ project in CLion (Ubuntu) that uses the CImg library. Currently, I cannot get the project to build properly. I have included the CImg.h file in my main.cpp file. I get an output like seen here. I made sure I had X11 tools installed by running the following command in the terminal: sudo apt-get install libx11-dev In the question linked to above, there is an answer that states to add the following compiler options: -L/usr/X11R6/lib -lm -lpthread -lX11 However, I run into 2 problems