Both host and plugin statically linked with JUCE


#1

Hello,

I have both a host application and a dylib plugin statically linked with JUCE 1.53.

Compiling them with -fvisibility=hidden isn’t enough as all “@interface” in the juce_mac specific implementations aren’t hidden, thus resulting in dlopen to fail.

Is there a method to hide those “@interface” to the host?


#2

Obj C stuff needs to be prefixed. Unfortunately, there is no two-level namespace


#3

Thanks, prefixing all the defined interfaces with “_” did the trick; even though I have to build juce twice with different native code.


#4

can’t you use JUCE_ObjCExtraSuffix ?


#5

I wasn’t aware of that define; that could have saved me some modifications.

I guess the result would be more or less the same.

Nevertheless, I’ll keep that in mind for future juce upgrades. Thanks.