google / google/neper

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

Open
#67 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
329
Forks
89
PR merge metrics
No merged PRs in 30d

Description

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

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

gcc is version 7.5.0

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.