• Status: Solved
  • Priority: High
  • Security: Private
  • Views: 31
  • Last Modified:

error LNK2001 C++ code compile

Hi Experts,

i am currently trying to compile an existing C++ project with Framemaker Development kit 2017. The earlier project was compiled with Framemaker dev kit 2015. However, whenever I am trying to compile the project I receive the following error. I think its a linking error but I tried almost all possible combinations to compile.

I am using Visual Studio 2013 ultimate since the FDK2017 lib need minimum VS2013 to compile.

Error	86	error LNK1120: 59 unresolved externals	C:\test\Project\Release 2015\Launcher.exe	Launcher
Error	28	error LNK2001: unresolved external symbol "__declspec(dllimport) __int64 const std::_BADOFF" (__imp_?_BADOFF@std@@3_JB)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	36	error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::uncaught_exception(void)" (__imp_?uncaught_exception@std@@YA_NXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	22	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\struct.lib(strUtils.obj)	Launcher
Error	23	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\fdk.lib(pathmap.obj)	Launcher
Error	24	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	25	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\struct.lib(FrameMakerXSLTHandler.obj)	Launcher
Error	26	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\struct.lib(XsltHandler.obj)	Launcher
Error	27	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\struct.lib(exmlvalidhandlers.obj)	Launcher
Error	16	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\struct.lib(strUtils.obj)	Launcher
Error	17	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\fdk.lib(pathmap.obj)	Launcher
Error	18	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	19	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\struct.lib(FrameMakerXSLTHandler.obj)	Launcher
Error	20	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\struct.lib(XsltHandler.obj)	Launcher
Error	21	error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPBDH@Z)	C:\test\Project\Launcher\struct.lib(exmlvalidhandlers.obj)	Launcher
Error	29	error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > std::cerr" (__imp_?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	85	error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > std::cout" (__imp_?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A)	C:\test\Project\Launcher\fm_lib.lib(logging.obj)	Launcher
Error	38	error LNK2001: unresolved external symbol "__declspec(dllimport) const std::basic_iostream<char,struct std::char_traits<char> >::`vftable'" (__imp_??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	37	error LNK2001: unresolved external symbol "__declspec(dllimport) const std::basic_istream<char,struct std::char_traits<char> >::`vftable'" (__imp_??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	15	error LNK2001: unresolved external symbol "__declspec(dllimport) const std::basic_ostream<char,struct std::char_traits<char> >::`vftable'" (__imp_??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	49	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: __thiscall std::basic_ios<char,struct std::char_traits<char> >::basic_ios<char,struct std::char_traits<char> >(void)" (__imp_??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	47	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::basic_streambuf<char,struct std::char_traits<char> >(void)" (__imp_??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	50	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" (__imp_?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	61	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::eback(void)const " (__imp_?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	57	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::egptr(void)const " (__imp_?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	54	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::epptr(void)const " (__imp_?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	60	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::gptr(void)const " (__imp_?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	59	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::pbase(void)const " (__imp_?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	58	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::pptr(void)const " (__imp_?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	75	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::showmanyc(void)" (__imp_?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	73	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::xsgetn(char *,__int64)" (__imp_?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JPAD_J@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	72	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::xsputn(char const *,__int64)" (__imp_?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE_JPBD_J@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	71	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setbuf(char *,__int64)" (__imp_?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PAD_J@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	70	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sync(void)" (__imp_?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	74	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::uflow(void)" (__imp_?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	69	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::imbue(class std::locale const &)" (__imp_?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	56	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::gbump(int)" (__imp_?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	53	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::pbump(int)" (__imp_?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	55	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setg(char *,char *,char *)" (__imp_?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	52	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setp(char *,char *)" (__imp_?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	51	error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setp(char *,char *,char *)" (__imp_?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	41	error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPBD_J@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	79	error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::ios_base::width(__int64)" (__imp_?width@ios_base@std@@QAE_J_J@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	80	error LNK2001: unresolved external symbol "__declspec(dllimport) public: __int64 __thiscall std::ios_base::width(void)const " (__imp_?width@ios_base@std@@QBE_JXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	48	error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_iostream<char,struct std::char_traits<char> >::basic_iostream<char,struct std::char_traits<char> >(class std::basic_streambuf<char,struct std::char_traits<char> > *)" (__imp_??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	84	error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::locale::id::id(unsigned int)" (__imp_??0id@locale@std@@QAE@I@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	82	error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall std::ios_base::good(void)const " (__imp_?good@ios_base@std@@QBE_NXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	40	error LNK2001: unresolved external symbol "__declspec(dllimport) public: char __thiscall std::basic_ios<char,struct std::char_traits<char> >::fill(void)const " (__imp_?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	45	error LNK2001: unresolved external symbol "__declspec(dllimport) public: char __thiscall std::basic_ios<char,struct std::char_traits<char> >::widen(char)const " (__imp_?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDD@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	44	error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (__imp_?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	64	error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" (__imp_??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	39	error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::put(char)" (__imp_?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	46	error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::tie(void)const " (__imp_?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	66	error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::rdbuf(void)const " (__imp_?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	43	error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (__imp_?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	81	error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::ios_base::flags(void)const " (__imp_?flags@ios_base@std@@QBEHXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	83	error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::ios_base::rdstate(void)const " (__imp_?rdstate@ios_base@std@@QBEHXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	68	error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (__imp_??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	62	error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall std::basic_iostream<char,struct std::char_traits<char> >::~basic_iostream<char,struct std::char_traits<char> >(void)" (__imp_??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	63	error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall std::basic_istream<char,struct std::char_traits<char> >::~basic_istream<char,struct std::char_traits<char> >(void)" (__imp_??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	65	error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall std::basic_ostream<char,struct std::char_traits<char> >::~basic_ostream<char,struct std::char_traits<char> >(void)" (__imp_??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	78	error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void)" (__imp_??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	77	error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAEXXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	76	error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (__imp_?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAEXXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	14	error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QAEXXZ)	C:\test\Project\Launcher\formats_config.obj	Launcher
Error	67	error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (__imp_?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	42	error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	2	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ)	C:\test\Project\Launcher\struct.lib(strUtils.obj)	Launcher
Error	3	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ)	C:\test\Project\Launcher\fdk.lib(pathmap.obj)	Launcher
Error	4	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ)	C:\test\Project\Launcher\formats_config.obj	Launcher
Error	5	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ)	C:\test\Project\Launcher\struct.lib(FrameMakerXSLTHandler.obj)	Launcher
Error	6	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ)	C:\test\Project\Launcher\struct.lib(XsltHandler.obj)	Launcher
Error	7	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ)	C:\test\Project\Launcher\struct.lib(exmlvalidhandlers.obj)	Launcher
Error	8	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)	C:\test\Project\Launcher\struct.lib(strUtils.obj)	Launcher
Error	9	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)	C:\test\Project\Launcher\fdk.lib(pathmap.obj)	Launcher
Error	10	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)	C:\test\Project\Launcher\formats_config.obj	Launcher
Error	11	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)	C:\test\Project\Launcher\struct.lib(FrameMakerXSLTHandler.obj)	Launcher
Error	12	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)	C:\test\Project\Launcher\struct.lib(XsltHandler.obj)	Launcher
Error	13	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?_Xlength_error@std@@YAXPBD@Z)	C:\test\Project\Launcher\struct.lib(exmlvalidhandlers.obj)	Launcher
Error	30	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)	C:\test\Project\Launcher\struct.lib(strUtils.obj)	Launcher
Error	31	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)	C:\test\Project\Launcher\fdk.lib(pathmap.obj)	Launcher
Error	32	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)	C:\test\Project\Launcher\Launcher.obj	Launcher
Error	33	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)	C:\test\Project\Launcher\struct.lib(FrameMakerXSLTHandler.obj)	Launcher
Error	34	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)	C:\test\Project\Launcher\struct.lib(XsltHandler.obj)	Launcher
Error	35	error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?_Xout_of_range@std@@YAXPBD@Z)	C:\test\Project\Launcher\struct.lib(exmlvalidhandlers.obj)	Launcher

Open in new window

0
Shravan Vishwanathan
Asked:
Shravan Vishwanathan
  • 4
1 Solution
 
sarabandeCommented:
it looks like you were linking your application against a library or an object file (launcher.obj) which uses a different version of the STL (standard template library).

the STL contains of header files (source) files, which were compiled with your sources. so you wouldn't get errors from the STL that is  defined by your include paths (regardless whether it is the right one or an older version) as the compiler would build the right object modules. but, if you were linking against libraries which have used a different version of the STL, then those object modules would require some deprecated or changed STL functions what gives the above errors.

another possible mistake is, that your code uses dll's which were build with a different STL. then the import libraries of such a dll   would require other STL functions.

since the FDK2017 lib need minimum VS2013 to compile.

you may check if this is really true. we are using vs2017 ultimate but still are compiling with vs2010 cl (compiler and linker).

Sara
0
 
Shravan VishwanathanAuthor Commented:
@Sara Thanks, but how do i identify the affected functions in the code?
0
 
sarabandeCommented:
in my opinion, you should provide an environment which doesn't have those conflicts.

i would try to uninstall all old versions of visual c++ and sdk and 3rd-party libraries which are not really necessary. all which are necessary must be ported to the new version before you can use them in your new project.

note, if you want to use vs2017 ide but build your project with an older compiler/linker version, you should uninstall all beside of the older version. if all is clean, install the newer visual studio. don't change directory paths and file paths as mixing of paths from different versions definitively would not work. that is true especially for include paths.

your main current issue seems to be that some dll's are using a different version of the standard template library (STL)as your current project. you can only solve this issue either by recompiling and rebuild all projects with the newer compiler (especially the newer STL) and linker, or, by going back to the older compiler/linker with your current project.

Sara
0
 
sarabandeCommented:
If its coming from he external DLL files I have no option to decompile it.

i am refering to your similar question asked in another thread:

the linker errors you get come from launcher.obj, fm_lib.lib and struct.lib. they don't come from a dll. a dll would not produce such errors because the functions of a dll already are compiled and linked. so you only would get linker errors if the missing STL functions would be in the interface.

so the main reason for the errors is that the launcher.cpp, and the sources used to build the struct.lib and the fm_lib.lib are not newly compiled with the current STL headers (sources!!!).

Sara
0
 
sarabandeCommented:
There were two questions asked for the same issues. but as one of those was asked anonymously and was more detailed as the other, it is necessary to keep both questions with answers, as the threads can't be merged.

Sara
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now