This is an example repository that demonstrates the use of a version script file to limit the visibility of symbols for a dynamic library.
This repository is used in this blog post: Symbols and Symbols File
You can build the example by running the following commands.
meson build ninja -C build
You can see the exported symbols by running the
nm command. In this case, only
symbols with a prefix of
foo are globally exported.