Skip to content

error: initializer element is not constant (gcc 7.5.0 on SLES 15 SP5) #67

@ajorg

Description

@ajorg

Trying to compile neper on SLES 15 SP5, I get the following error, introduced by 8b2f9e1

histo.c:31:36: error: initializer element is not constant
 static const double TICKS_TO_SEC = 1.0 / TIME_RESOLUTION;
                                    ^~~
make: *** [<builtin>: histo.o] Error 1

gcc is version 7.5.0

make CC=clang works, so I have a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions