Pro tools 2022.12 crash JUCE 7.0.5

Found the solution here:

add the compiler flags :

-fvisibility=hidden
-fvisibility-inlines-hidden