I have a number of C++ header and source files which are used in different projects. Now I need to create a new common project which will contains all these headers and their related implementation in cpp files. I am able to create the project and generate a lib and used in existing projects removing the direct header and cpp files but I am getting LNK2001 error
.
Do I need to use dllexport
for all classes and methods in the new project that I created?