I am trying to call a c++ function from a D module. I have followed the guide on this page http://dlang.org/spec/cpp_interface.html but I am unable to get it to work.
I have created a solution in visual studio 2015 with two projects in it, one is the D project and the other is C++ project. I build the C++ project and generate a .lib file. Then in the D project I have set the path to the lib file in Configuration Properties -> Linker -> General -> Library Files but when I run the solution I get Error43: Not a Valid Library File.
Thanks in advance