Thread overview | |||||
---|---|---|---|---|---|
|
November 18, 2015 can visual-d support interaction VC++? | ||||
---|---|---|---|---|
| ||||
if yes. i want know how to use VC++ lib in D Lang... |
November 20, 2015 Re: can visual-d support interaction VC++? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kishan Devani | On 18.11.2015 18:07, Kishan Devani wrote: > if yes. > i want know how to use VC++ lib in D Lang... You can find some information on D's capabilities regarding interoperability with C++ here: http://dlang.org/cpp_interface.html Visual D has some support to build C/C++ files within a D project, but you'll have to specify most command line options yourself. As an alternative, you can also link to a C++ library by adding it to the "Project Dependencies" of the D project. This will guarantee correct build order and add the library automatically to the link step. |
November 28, 2015 Re: can visual-d support interaction VC++? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kishan Devani | On 18.11.2015 18:07, Kishan Devani wrote: > if yes. > i want know how to use VC++ lib in D Lang... I remember having answered this (or a similar question) recently, but can't find it, so here it is again: Declarations necessary for calling C/C++ functions from D is described here: http://dlang.org/interfaceToC.html and http://dlang.org/cpp_interface.html In Visuald D, just add the VC++ library project as a "Project Dependency" to the D project. This will add the library to the link command line of the D executable. |
Copyright © 1999-2021 by the D Language Foundation