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

[Bug]: Juce 7.0.x doesn't compile with C++23 on AppleClang #1350

Open
1 task done
lkotsonis opened this issue Feb 12, 2024 · 5 comments
Open
1 task done

[Bug]: Juce 7.0.x doesn't compile with C++23 on AppleClang #1350

lkotsonis opened this issue Feb 12, 2024 · 5 comments

Comments

@lkotsonis
Copy link

lkotsonis commented Feb 12, 2024

Detailed steps on how to reproduce the bug

Try building e.g. the DemoRunner using the XCode project and setting the C++ standard to C++23.

What is the expected behaviour?

That compilation of the juce libraries succeeds using C++23.

Operating systems

macOS

What versions of the operating systems?

Sonoma 14.3.1
XCode 15.2

Architectures

ARM

Stacktrace

XCode errors:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__memory/unique_ptr.h:63:19: Invalid application of 'sizeof' to an incomplete type 'juce::AccessibilityHandler'

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__memory/unique_ptr.h:63:19: Invalid application of 'sizeof' to an incomplete type 'juce::Drawable'


Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct
@lkotsonis
Copy link
Author

I also tested this with 7.0.10.

@tarlanahad
Copy link

No solution yet?

@lkotsonis
Copy link
Author

No solution yet?

The commits I've seen after 7.0.10 don't seem to tackle anything related to C++23, but also I haven't tried building again using C++23 since then. Did you also get a failure @tarlanahad ?

@Anthony-Nicholls
Copy link
Contributor

Thanks we're aware of the issue but we're working on JUCE 8 first. Unfortunately to fix builds for C++23 we'll need to make changes in areas that have been heavily modified in JUCE 8 which is why we haven't tackled this yet.

Sorry for any inconvenience caused and thanks for your patience.

@tarlanahad
Copy link

@lkotsonis , yes, I'm getting failure mainly because of not fully defined unique_ptr, which C++ 23 strictly requires.

I hope you can solve this, @Anthony-Nicholls , we will be looking forward to using JUCE with C++ 23. Thanks for the prompt response.

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

3 participants