Skip to content

epee: include math header for upcoming Boost 1.89#10036

Merged
tobtoht merged 1 commit intomonero-project:masterfrom
cho-m:floor-error
Aug 21, 2025
Merged

epee: include math header for upcoming Boost 1.89#10036
tobtoht merged 1 commit intomonero-project:masterfrom
cho-m:floor-error

Conversation

@cho-m
Copy link
Contributor

@cho-m cho-m commented Aug 13, 2025

When building on Ubuntu 22.04 with GCC 11.4.0 and Boost 1.89.0.beta1, the build failed with:

error: ‘floor’ was not declared in this scope
     41 |       num_char = (int)floor((float)num_char / (float)radix);
        |                       ^~~~~

num_char = (int)floor((float)num_char / (float)radix);

Seen while beta testing upcoming Boost 1.89.0 (planned release tomorrow, Aug 13) at Homebrew - Homebrew/homebrew-core#233031

No issues with Boost 1.88.0 so some Boost changes must have resulted in no longer indirectly including math.h or cmath.

When building on Ubuntu 22.04 with GCC 11.4.0 and Boost 1.89.0.beta1,
the build failed with:
```
error: ‘floor’ was not declared in this scope
     41 |       num_char = (int)floor((float)num_char / (float)radix);
        |                       ^~~~~
```

Signed-off-by: Michael Cho <michael@michaelcho.dev>
@cho-m cho-m mentioned this pull request Aug 13, 2025
41 tasks
@tobtoht tobtoht merged commit 099af33 into monero-project:master Aug 21, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants