The problem can still happen with the current version of JUCE.
In
I replaced
static inline long int lround(double x) {
return (long)(x + copysign (0.5, x));
}
by
static inline long int jlround(double x) {
And replaced all the occurences of lround in this file and the problem was fixed. No more conflict with std::lround.