How to add libraries to dll project in VS2013?

1.2k Views Asked by At

I've got a code in C++ built with some libraries like vtk, fltk, pcl and kinect SDK in Visual Studio 2010. My task is taking this project and integrate it into another C#.NET project with Visual Studio 2013.

I was told to do a new project for the dlls and copy the code I need there to make a wrap. My current problem is that I do not know how to add the references so my code can find the includes for the libraries and compile. I have tried to add the .h and .lib manually but does not work. May you give me any hint?

Thank you.

1

There are 1 best solutions below

3
On BEST ANSWER

I'm not entirely clear what your question is, but try this: Right click on your project in the solution explorer and go to Properties -> Configuration Properties -> Linker -> Input. In the additional dependencies field, add your .lib file(s).

remember to #include the corresponding header files in your source file.