Skip to content

checking for POSIX regcomp #241

@polluks

Description

@polluks
configure:6101: gcc -o conftest -g -O2   conftest.c  -lncurses >&5
conftest.c:72:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main() { regex_t r; regmatch_t rm; char *text = "xabcy";
^
conftest.c:73:28: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
if (regcomp(&r, "abc", 0)) exit(1);
                           ^
conftest.c:73:28: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 warning and 1 error generated.
configure:6101: $? = 1
configure: program exited with status 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