You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to create CLD-3 libraries to use in your own project
How to create an independent shared library of cld-3
If you wanna use cld-3 in your project but don't want to keep depending on Ninja/gn build system then here's how I did it - on Linux (Arch 4.16.13-1) and g++.
Disclaimer:
I'm not an expert on this topic, this is just how I (finally) managed to do it, not necessarily the best way to do it (esp. with the STD compatibility). if you have any suggestions about how to do it better let me know.
Static vs Shared Library
The benefit of a shared library is that you can copy it for wherever you want and use if from there, as for the static - I found out you can't move it, unless you move the whole out/Debug folder (or maybe just the out/Debug/obj folder, I'm not quite sure). There might be some differences in the performence, but they say it isn't significant.