Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing header in WaveClip.cpp #6414

Open
mohd-akram opened this issue May 10, 2024 · 0 comments
Open

Missing header in WaveClip.cpp #6414

mohd-akram opened this issue May 10, 2024 · 0 comments
Labels
community build bugs Bug in non-official builds, such as distro-repos or self-compiled ones

Comments

@mohd-akram
Copy link

Bug description

I'm getting a build error on macOS 10.14 due to a missing <cmath> header in WaveClip.cpp.

Steps to reproduce

  1. Build the program

Expected behavior

Builds successfully

Actual behavior

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_audacity/audacity/work/audacity-sources-3.5.1/libraries/lib-wave-track/WaveClip.cpp:1325:11: error: no member named 'round' in namespace 'std'; did you mean 'roundl'?
   return std::round(t * mRate) / mRate;
          ^~~~~~~~~~
          roundl
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/math.h:477:20: note: 'roundl' declared here
extern long double roundl(long double);
                   ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_audacity/audacity/work/audacity-sources-3.5.1/libraries/lib-wave-track/WaveClip.cpp:1372:16: error: no member named 'floor' in namespace 'std'
   return std::floor(GetPlayDuration() * mRate + 0.5) < 2.0;
          ~~~~~^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_audacity/audacity/work/audacity-sources-3.5.1/libraries/lib-wave-track/WaveClip.cpp:1436:12: error: no member named 'ceil' in namespace 'std'
      std::ceil(quarters * secondsPerQuarter * GetRate()) / GetRate();
      ~~~~~^

Audacity Version

other

Operating system

macOS

Additional context

Full log

@mohd-akram mohd-akram added the bug An error, undesired behaviour, or missed functionality label May 10, 2024
@LWinterberg LWinterberg added community build bugs Bug in non-official builds, such as distro-repos or self-compiled ones and removed bug An error, undesired behaviour, or missed functionality labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community build bugs Bug in non-official builds, such as distro-repos or self-compiled ones
Projects
None yet
Development

No branches or pull requests

2 participants