How to use a function without their sources
Rob T
alanb at ucora.com
Fri Jan 18 09:47:11 PST 2013
On Friday, 18 January 2013 at 17:02:51 UTC, Jordi Sayol wrote:
> Is there a way to use a function from a static D library
> without importing their D sources nor their DI interface?
Yes you should be able to do it, but not everything can be
imported without the source code, for example function templates
are not included in the library object file unless you make the
effort to wrap them into specific typed versions that will be
compiled into the object file.
If you don't have a di file for the library, you can always make
one.
See this related thread which is basically the same subject
http://forum.dlang.org/thread/jhmgqvvlyrunleknkaxz@forum.dlang.org
--rt
More information about the Digitalmars-d-learn
mailing list