Am I the only one one getting tons of warnings now when linking code with Juce? Using 10.6 and XCode 3.2, with Juce from git from last week…
I get hundreds of warnings of the form: "ld: warning: juce::jmin(int, int)has different visibility (hidden) in /Users/me/juce/bin/UninstalledProducts/libjucedebug.a(juce_File.o) and (default) in /…
Driving me a little potty. I know that Jules uses JUCE_API to get around this, but doesn’t seem to be working as I expected. NB: I’m linking with the Juce library, rather than compiling-in the amalgamated sources.
No, I’m getting that too and find it pretty annoying. Wasn’t really sure what was causing it though so have tried to ignore it for now.
I did have a play around with the visibility settings in the build settings such as “Inline methods hidden”, “Symbols hidden by default” and “Hidden local variables” but could only make it worse going from around 200 errors to 1300.
I was able resolve this by changing the visibility options in both my application target settings and in the JUCE library target settings. I don’t remember the exact setting names, but I just typed “visibility” into the search box on the settings window.
I then had to clean and rebuild both JUCE and my app.
Just an update on the information matt has shared, unchecking “Inline method hidden” does the job. It can also be searched as “GCC_INLINES_ARE_PRIVATE_EXTERN”.
Anyway, I’ll shortly be replacing all the old juce library projects with jucer-generated ones, so they’ll definitely all have the correct settings to build cleanly…
I am still getting these warnings even with a fresh compilation of the tip and using the Jucer to generate my projects. I noticed that the Jucer generates projects with these two options ticked by default which means I have to uncheck them manually every time I do a “Save Project and Open in XCode”. Would it be possible to have these unticked by default?