I need to create dll library from existing c++ project (around 20 files .cpp and .h). Project use opencv. I've done something like this:
#ifndef TESTDLL_LOADCONFIG_H
#define TESTDLL_LOADCONFIG_H __declspec(dllexport)
#else
#define TESTDLL_LOADCONFIG_H __declspec(dllimport)
#endif
at the beginning every header file which I want to export. And changed in properties configuration type to dll.
So there is my question is it all, and build dll file is ok? And is it possible to not attach again a opencv if it was attached in first project?