sciboy12 / Abs-C

Use your touchpad/touchscreen stylus to play osu! on Linux (C version)
2 stars 1 forks source link

Error when compiling: abs-c.c:(.text+0x571): undefined reference to `ini_parse' #1

Open ImGGAAVVIINN opened 3 months ago

ImGGAAVVIINN commented 3 months ago

$ make


abs-c.c: In function ‘main’:
abs-c.c:187:40: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 53 [-Wformat-truncation=]
  187 |         snprintf(path, sizeof path, "%s%s", "/dev/input/", namelist[i]->d_name);
      |                                        ^~
abs-c.c:187:9: note: ‘snprintf’ output between 12 and 267 bytes into a destination of size 64
  187 |         snprintf(path, sizeof path, "%s%s", "/dev/input/", namelist[i]->d_name);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/cc2cJNX0.o: in function `main':
abs-c.c:(.text+0x571): undefined reference to `ini_parse'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: abs-c] Error 1```
sciboy12 commented 3 months ago

Looks like I forgot to add a dependency to the readme. Try installing libinih-dev.

Also, libx11-dev is no longer required, as the current display resolution is now set manually in the config file.