I'am on arch linux i have the xlib header installed but same error,
here in english :
----------------------------------------------------
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
-I/usr/X11R6/inc
freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION="6.1"
-DXINER
LDFLAGS = -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
CC = cc
cc -c -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
-I/usr/X11R6/include
ype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"6.1\"
-DXINERAMA
dwm.c: In function 'cleanup':
dwm.c:487:25: error: 'colors' undeclared (first use in this function); did you
mean '
for (i = 0; i < LENGTH(colors); i++)
^~~~~~
dwm.c:53:41: note: in definition of macro 'LENGTH'
#define LENGTH(X) (sizeof X / sizeof X[0])
^
dwm.c:487:25: note: each undeclared identifier is reported only once for each
functio
for (i = 0; i < LENGTH(colors); i++)
^~~~~~
dwm.c:53:41: note: in definition of macro 'LENGTH'
#define LENGTH(X) (sizeof X / sizeof X[0])
^
dwm.c: In function 'setup':
dwm.c:1570:26: error: 'colors' undeclared (first use in this function); did you
mean
scheme = ecalloc(LENGTH(colors), sizeof(Clr *));
^~~~~~
dwm.c:53:41: note: in definition of macro 'LENGTH'
#define LENGTH(X) (sizeof X / sizeof X[0])
^
make: *** [Makefile:18: dwm.o] Error 1
----------------------------------------------------
September 8, 2018 1:37 PM, "lukáš Hozda" <[email protected]> wrote:
> Howdy,
>
> do you have the Xlib headers installed on your system? Also would you
> mind compiling with LANG=C so that we get errors that those who don't
> speak french can understand as well?
>
> On Sat, Sep 8, 2018 at 12:59 PM <[email protected]> wrote:
>
>> Hi all, i'am trying to compile the latest version of dwm via "git clone
>> https://git.suckless.org/dwm"
>>
>> make return this :
>> https://framadrop.org/r/Xs6RmII-iJ#fW1DAIFZT1k+6oMHDqZh9fLILK9Q3CAfu23F6RX1xbk=
>>
>> here my config.h :
>> https://framadrop.org/r/sbMu6Xgi4i#pH08ZY4QgN7oCIuMSpNY+4o1b1P6bli+C4JHpHrxBcU=
>>
>> Thanks for your help.
>>
>> --
>> [email protected]