I want to build a small reusable library. I have 2 projects, project A to build a library function (must dynamic library), and project B to run tests on it.
My problem encountered the following error: In project B I used the following code:
#include "StdAfx.h"
#include "C:\......\projectA\Ent extension.h" (same folder with "Ent extension.cpp")
void Call_plot()
{
...=fent_select(..);
}
however when I build the project I always get an error:
Error LNK2019 unresolved external symbol "class Ent __cdecl fent_select(wchar_t const ,enum Mode)" (?fent_select@@YAPEAVEnt@@PEB_WW4Mode@Db@@@Z) referenced in function "void __cdecl" Call_plot (?Call_plot@@YAXXZ)
How i can fix this problem?
Thanks you!