WIndows 7
Project framework : c++/CLR VS 2017
Issue: I have successfully linked static library into my project. SO I do not get any compilation error related to it. I have added header file of it in my cpp file as well.
But when I try to call functions from Static library compiler complains about it.
I am wondering, Am I missing something ?
Just to note: I have tried to link static library & call its functions in my dummy project build under win32 and it compiles just fine So issue is related to C++/CLR.
Employee.obj : error LNK2028: unresolved token (0A000519) "extern "C" void __cdecl convertPensionToInvest(long,char,double,double,double *,double *,double *)" (?convertPensionToInvest@@$$J0YAXJDNNPEAN00@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Employee::convertRanAzEleToHtLatLon(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?convertRanAzEleToHtLatLon@Employee@@$$FQEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV23@00@Z)
1>Employee.obj : error LNK2019: unresolved external symbol "extern "C" void __cdecl convertPensionToInvest(long,char,double,double,double *,double *,double *)" (?convertPensionToInvest@@$$J0YAXJDNNPEAN00@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Employee::convertRanAzEleToHtLatLon(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?convertRanAzEleToHtLatLon@Employee@@$$FQEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV23@00@Z)