I have solution with two projects- proj_1
, proj_2
.
proj_1
is lib project and proj_2
is regular project
in proj_2
I have function named static void proj_2_func()
.
Im trying to call that function from proj_1
(without creating an object) but I get linkage error- unresolved external symbol
.
proj_2:
class proj_2_class
{
public:
static void proj_2_func(); //the implementation is not relevant
}
proj_1:
in cpp file:
#include proj_2_class.h // I added the path to "additional include files" in proj_1
void proj_1_class::proj_1_func()
{
proj_2_class::proj_2_func();
}
Ill be happy for guidance on that error.
thanks.