-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build instructions #51
Comments
TL;DR If you really really need a shared library, change line 6 in General note about the use of shared libraries in DIn general, source-only or source + static library are the most common ways to consume D libraries. Dynamic libraries (shared objects) + header files are rare occurrence in D, because most libraries only promise source compatibility and not ABI compatibility. Most notably, D's runtime and standard libraries don't have a stable ABI neither across compiler releases (even patch versions - e.g. 2.100.0 vs 2.100.1), nor across the same frontend version, but different compiler vendors (e.g. LDC 1.29.0 is based on DMD 2.099.1). That means, that unless the author(s) of a D library have specifically promised to maintain a stable ABI surface, simply compiling it and installing it in Background info regarding DubDub has the concept of target types which allow the package author to specify the whether the package is a program that should be compiled to an executable, or whether it is a library in which case it could be a source library, static library or dynamic library. (There is also the the option to specify the target type as simply |
I tried
dub build
, but it did not createlibundead.so
, onlylibundead.a
andundead-test-library
,The text was updated successfully, but these errors were encountered: