Skip to content

docker ubuntu:latest got error #2

Open
@rushairer

Description

@rushairer

Ubuntu 22.04.2 LTS

source/strings.c: In function 'replaceString':
source/strings.c:24:7: warning: unused variable 'len3' [-Wunused-variable]
   24 |   int len3 = strlen(_replace);
      |       ^~~~
source/strings.c: At top level:
source/strings.c:45:8: error: conflicting types for 'splitString'; have 'char **(char *, const char *, int *)'
   45 | char **splitString(char *str, const char *delimiter, int *count) {
      |        ^~~~~~~~~~~
In file included from source/strings.c:3:
source/../include/strings.h:10:8: note: previous declaration of 'splitString' with type 'char **(const char *, const char *, int *)'
   10 | char** splitString(const char* str, const char* delim, int* count) ;
      |        ^~~~~~~~~~~
make: *** [Makefile:18: build/strings.o] Error 1

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