slimlock icon indicating copy to clipboard operation
slimlock copied to clipboard

Error while compiling

Open PogLop opened this issue 2 years ago • 2 comments

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

PogLop avatar Oct 25 '22 07:10 PogLop

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

the-33 avatar Sep 01 '23 13:09 the-33

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

KyloPink avatar Dec 15 '23 17:12 KyloPink