Dynamic Linking for MacOS?
BlitzMax Forums/BlitzMax Programming/Dynamic Linking for MacOS?
| ||
Is there such a thing as dynamic linking for MacOS, Linux? It seems many licenses restrict static linking. Thanks Mike |
| ||
Yes. The following illustrates the use of the python shared library using the dynamic linking instructions dlopen and dlsym: |
| ||
Awesome. Thanks for the example! |
| ||
If you want "proper" dynamic linking, as per the -l option that the linker uses (like in Max on Linux), see this post for a description on what to change in bmk to allow it. :-) |