I followed step by step how to include a dll project in a Visual Studio solution in this link When I did the test to check if the dll function is well linked to the application, it recognises it. But? I am having now an error which looks like what is follow:
PS: init_test() is a Dll function APP is the application and in one of its function (image(void)), I included DLL:init_test()
Error 4 error LNK2019: unresolved external symbol "public: static void __cdecl DLL::init_test(unsigned long)" (?init_test@DLL@@SAXK@Z) referenced in function "public: void __thiscall APP::image(void)" (?image@APP@@QAEXXZ) C:\Users\xxx\apps\APP\APP.obj
Error 5 error LNK1120: 1 unresolved externals C:\Users\xxx\APP.exe
Let me try to represent what I did:
#ifdef DLL_EXPORTS
#define DLL_API __declspec(dllexport)
#else
#define DLL_API __declspec(dllimport)
#endif
class DLL
{
public:
static void image_test();
};
void APP:image()
{
....
....
DLL::image_test();
}