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

error: use of undeclared identifiers 'free' and 'calloc' #990

Closed
ryandesign opened this issue Jun 4, 2024 · 1 comment
Closed

error: use of undeclared identifiers 'free' and 'calloc' #990

ryandesign opened this issue Jun 4, 2024 · 1 comment
Milestone

Comments

@ryandesign
Copy link

7.24.0 fails to build on older versions of macOS (I saw it on OS X 10.10 and 10.11):

src/modules/rubberband/filter_rbpitch.cpp:271:9: error: use of undeclared identifier 'free'
        free(pdata);
        ^
src/modules/rubberband/filter_rbpitch.cpp:281:44: error: use of undeclared identifier 'calloc'
    private_data *pdata = (private_data *) calloc(1, sizeof(private_data));
                                           ^
src/modules/rubberband/filter_rbpitch.cpp:298:9: error: use of undeclared identifier 'free'
        free(pdata);
        ^
3 errors generated.

Have you included the header that declares these?

@ddennedy ddennedy added this to the v7.26.0 milestone Jun 4, 2024
@ddennedy
Copy link
Member

ddennedy commented Jun 4, 2024

Oldest macOS I have is 10.14 to test for any other compilation errors. Reopen if there are others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants