Hi,
I had the same problem. It's a strange error and I haven't taken the
time to work out exactly what's causing it, but a quick fix is to copy
the functions directly into the main dwm.c and declaring function
prototypes for those functions before the #include "config.h" line.
For example:
...
static void gaplessgrid(Monitor *m);
/* configuration, allows nested code to access above variables */
#include "config.h"
...
void
gaplessgrid(Monitor *m) {
unsigned int n, cols, rows, cn, rn, i, cx, cy, cw, ch;
Client *c;
...
Regards,
Al Gest
2009/11/7 Bartosz Nitkiewicz <bartosz.nitkiewicz_AT_dziq.pl>:
> I wonder how to applay pertag patch and gaplessgrid together. When I apply pertag on clean hg sources it works fine, but
> if I try to apply gaplessgrid or some other layout patch (bstack. nmaster) I have this error:
>
> dwm build options:
> CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.8" -DXINERAMA
> CC dwm.c
> LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
> CC = cc
> In file included from config.h:36,
> from dwm.c:255:
> gaplessgrid.c: In function ‘gaplessgrid’:
> gaplessgrid.c:6: error: dereferencing pointer to incomplete type
> gaplessgrid.c:20: error: dereferencing pointer to incomplete type
> gaplessgrid.c:20: error: dereferencing pointer to incomplete type
> gaplessgrid.c:23: error: dereferencing pointer to incomplete type
> gaplessgrid.c:26: error: dereferencing pointer to incomplete type
> gaplessgrid.c:26: error: dereferencing pointer to incomplete type
> gaplessgrid.c:27: error: dereferencing pointer to incomplete type
> gaplessgrid.c:28: error: dereferencing pointer to incomplete type
> make: *** [dwm.o] Błąd 1
>
> Could you please help me to find solution
> Regards,
> dziq
>
Received on Sun Nov 08 2009 - 08:18:06 UTC
This archive was generated by hypermail 2.2.0 : Sun Nov 08 2009 - 08:24:02 UTC