R
RichTNYC
Guest
I am trying to build an in-house library with VS 2017 that has previously been built with 2013. It uses boost. I rebuilt the latest boost using defaults. I get a linker error when building my code that it cannot find mfc120ud.lib, which is part of an older VS. But I add the path to the 2013 lib files to the project and rebuild. This time I get the warning:
mfcs120ud.lib(dllmodul.obj) : warning LNK4217: locally defined symbol
_swprintf_s imported in function "private: static void
__cdecl ATL::CTrace::TraceV(char const *,int,unsigned int,unsigned int,wchar_t const *)" (?TraceV@CTrace@ATL@@CAXPBDHIIPB_W@Z)
and then linker error:
mfcs120ud.lib(dllmodul.obj) : error LNK2019: unresolved external symbol __imp___vsnwprintf_s referenced in function "public: static void __cdecl ATL::CTrace::TraceV(char const *,int,unsigned int,unsigned int,wchar_t const *,char *)" (? TraceV@CTrace@ATL@@SAXPBDHIIPB_WPAD@Z)
I don't see that print function in my code, but Boost has it, which is why I mention it. How do I get rid of the error?
Continue reading...
mfcs120ud.lib(dllmodul.obj) : warning LNK4217: locally defined symbol
_swprintf_s imported in function "private: static void
__cdecl ATL::CTrace::TraceV(char const *,int,unsigned int,unsigned int,wchar_t const *)" (?TraceV@CTrace@ATL@@CAXPBDHIIPB_W@Z)
and then linker error:
mfcs120ud.lib(dllmodul.obj) : error LNK2019: unresolved external symbol __imp___vsnwprintf_s referenced in function "public: static void __cdecl ATL::CTrace::TraceV(char const *,int,unsigned int,unsigned int,wchar_t const *,char *)" (? TraceV@CTrace@ATL@@SAXPBDHIIPB_WPAD@Z)
I don't see that print function in my code, but Boost has it, which is why I mention it. How do I get rid of the error?
Continue reading...