How can I compile a c++ library into a single file that is calleble from any external project?

I have a c++ library (https://github.com/terrychenism/caffe-windows-cudnn) including different bunchs of c++ headers and cpp files. It also includes 3rd party libraries as well (their .lib, .h, .dll files). I wrote a main function inside this library. My aim is to call the work-flow that is inside the main function in another project. (I know what main is, but I need to make it a custom function then call it in the external project).

For this problem, If possible, I need to compile all the library as a single file with my custom function (like .JAR in Java) and include it in the other project to call that function. How should I go for it? Thanks.

I am using Windows 8.1 and Visual Studio 2012
Create a library project instead of an application project.
Topic archived. No new replies allowed.