Dynamic Linking for MacOS?

BlitzMax Forums/BlitzMax Programming/Dynamic Linking for MacOS?

Morbius(Posted 2006) [#1]
Is there such a thing as dynamic linking for MacOS, Linux? It seems many licenses restrict static linking.

Thanks

Mike


skidracer(Posted 2006) [#2]
Yes.

The following illustrates the use of the python shared library using the dynamic linking instructions dlopen and dlsym:




Morbius(Posted 2006) [#3]
Awesome. Thanks for the example!


Brucey(Posted 2007) [#4]
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.

:-)