Skip to content

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

Description

@ImGGAAVVIINN

$ 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```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions