开发者

Linking to Static libraries

Coming from a C/C++ background. What is the proper way to link a D static (or dynamic) library to a D .exe file? Can I simply "import" the module from the library and then link to the .lib fi开发者_JAVA技巧le at compile time?


Yes, for static libs, but you also need to pass the library's sources or *.di files to the compiler via -I.

I think D does not have good (or any?) support for dynamic libs at present, though it is high on the todo list.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜