dannyn / slimlock

SLiM + slock = slimlock
GNU General Public License v2.0
43 stars 5 forks source link

Error while compiling #13

Open PogLop opened 2 years ago

PogLop commented 2 years ago

I got this error when i tried to compile slimlock on my machine. I use pop_os.

panel.cpp: In constructor ‘Panel::Panel(Display*, int, Window, Cfg*, const string&)’:
panel.cpp:47:15: error: ordered comparison of pointer with integer zero (‘GC’ {aka ‘_XGC*’} and ‘int’)
   47 |     if (WinGC < 0) {
      |         ~~~~~~^~~
make: *** [Makefile:29: panel.o] Error 1
the-33 commented 1 year ago

I have the exact same issue Did u figure out a workarround?

Kylo3155 commented 11 months ago

try changing the "WinGC < 0" to "WinGC != (void *) NULL" inside the panel.cpp file