How to compile C++ and D code, and linking them together on Windows, I will use c++ function In D? Thanks.
FrankLike
1150015857 at qq.com
Sun Feb 25 15:38:31 UTC 2018
Hi,everyone,
How to compile C++ and D code, and linking them together on
Windows ? I will use c++ function In D.
I use vs2010 c++ on Windows, What should I do?
For example:
1. create 2 files: C++.cpp D.d
2. I get the C++.obj fiel by vs2010.
3. I get the D.obj by dmd -c -m32mscoff
Then how to link? use Dmd's link or VC's link?
Now I use the VC's link,and dmd -c -m32mscoff.but get the
error:phobos32mscoff.lib<...>:error LNK2001....
Total 187 errors.
Thanks.
More information about the Digitalmars-d-learn
mailing list