darksworm / imgsel-x11

GUI image selection tool for X11, discontinued, now working on qt version here https://github.com/darksworm/imgsel-qt
GNU General Public License v3.0
0 stars 0 forks source link

CLI arguments #26

Closed darksworm closed 5 years ago

darksworm commented 5 years ago
darksworm commented 5 years ago

A CLI param parser library is probably necessary. Tried CLI11 - that shit don't compile.

darksworm commented 5 years ago

So the difficulty with including CL11 was due to Xlib.

Xlib defines a variable Success with #define. CLI11 has some enum class which has the member Success. When including CLI11 after Xlib, the enum class member in CLI11 is now recognized as the Success variable, which is defined in Xlib.

Long story short - include CLI11 before Xlib, and you'll be just fine.