Linking a JUCE project to a static library created in JUCE

Hi clever JUCE-ers,

Is there a way to generate a static library using JUCE that can be linked to 3rd party projects that maybe will be created in JUCE?

The problem here can be duplicated symbols as a .lib file on Windows is just a merge of several .obj files and will include the JUCE modules themself too causing duplicate symbols at the linking.

Removing the JUCE modules from the .lib file could solve the linking issue temporarily, but could cause JUCE version mismatch problems…

Also the BinaryData should be renamed in the static library project as that can’t be removed from the library for obvious reasons…

Any nice workaround idea how one can use JUCE in a static library without worrying the 3rd party project’s framework?

Did you ever find a way to do this? I’m running into exactly the same problem but haven’t found any way to do it that doesn’t require knowing if the end user has JUCE in their project or not.

Put the JUCE functions within the static library in a namespace.

Even with the symbols not clashing any more, I would expect ABI problems if the lib was created with a different compiler than the 3rd party project. Or am I missing something?