Suggestion: Use -Wl,--no-undefined to catch missing symbols in shared libs


#1

I've seen some plugins building correctly but then failing to load because they were missing symbols.

This can be "fixed" by adding:

-Wl,--no-undefined

in the linker arguments.

It works for both apps and shared libs (although for apps it's not needed).

 


#2

Good tip, thanks!


#3

Jules, could you try this on the Pi, please (most of the other demo apps build except audo plugin demo)?


#4

This really saved me time and I recommend everyone to put this flags into your build script.


#5

The introjucer will add it automatically now, for plugins.