Visual Studio 2012中的运行时不匹配

安基·辛格

我有一个最初是VS2008的解决方案,我已经将其迁移到VS2012,但这并没有造成问题。我的解决方案使用DCMTK静态库,因此我也使用VS 2012对其进行了编译。解决方案中总共有68个项目,其中只有一个需要DCMTK库。

现在,在编译单个项目时(在C ++中),我得到以下错误:

Error   482 error LNK1120: 4 unresolved externals      
Error   478 error LNK2019: unresolved external symbol "int __cdecl ConvertRawToJPEG(unsigned char *,unsigned char *,int,int,int &,int)" ([email protected]@[email protected]) referenced in function "public: virtual long __stdcall DxsDicomFileCreator::CreateThumbnailImage16(unsigned short *)" ([email protected]@@[email protected])
Error   479 error LNK2019: unresolved external symbol "int __cdecl GetJPEGImage(unsigned char *,int,unsigned char *,int)" ([email protected]@[email protected]) referenced in function [email protected]@@[email protected]$0 
Error   480 error LNK2019: unresolved external symbol "int __cdecl GetJPEGImage16(unsigned char *,int,unsigned short *,int)" ([email protected]@[email protected]) referenced in function [email protected]@@[email protected]$0
Error   481 error LNK2019: unresolved external symbol "public: virtual class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall CFileFind::GetFileTitleA(void)const " ([email protected]@@[email protected][email protected][email protected]@[email protected]@@@@[email protected]@XZ) referenced in function "public: virtual long __stdcall DxsDicomPrintSCU::PrintSCU(void)" ([email protected]@@UAGJXZ)
Error   377 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease'
Error   348 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' DxsBaseDicomSCU.obj 
Error   361 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in DxsBaseDicomSCU.obj
Error   315 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in DxsBaseDicomSCU.obj  
Error   80  error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in DxsBaseDicomSCU.obj  
Error   233 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in DxsBaseDicomSCU.obj  
Error   245 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in DxsBaseDicomSCU.obj  
Error   181 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in DxsBaseDicomSCU.obj  
Error   211 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in DxsBaseDicomSCU.obj  
Error   174 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in DxsBaseDicomSCU.obj  

现在,当我使用/ MT运行时DCMTK库尝试使用/ MD运行时来构建DCMTK库时,就会出现这些错误,在这种情况下会出现以下错误:

Error   3172    error LNK1120: 89 unresolved externals
Error   2157    error LNK2001: unresolved external symbol "__declspec(dllimport) __int64 const std::_BADOFF" ([email protected]@@3_JB) 
Error   2273    error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::uncaught_exception(void)" ([email protected]@@YA_NXZ)    
Error   2714    error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" ([email protected]@@[email protected][email protected]@[email protected]@@[email protected]@@Z) 
Error   2240    error LNK2001: unresolved external symbol "__declspec(dllimport) const std::basic_ios<char,struct std::char_traits<char> >::`vftable'" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]) 
Error   2205    error LNK2001: unresolved external symbol "__declspec(dllimport) const std::ios_base::`vftable'" ([email protected]@@[email protected])  
Error   2210    error LNK2001: unresolved external symbol "__declspec(dllimport) const std::ios_base::`vftable'" (__imp_??  [email protected]@@[email protected])    
Error   1743    error LNK2001: unresolved external symbol "__declspec(dllimport) private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" ([email protected][email protected]@@[email protected]@Z)   
Error   3164    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)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected])    
Error   2454    error LNK2001: unresolved external symbol "__declspec(dllimport) protected: char * __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@IAEPADXZ)  D:\CCRC_VS\Allura_FCFD_Win7_Dev_Laxmi\Drishti\Drishti\Code\Drishti.DataTier\Drishti.DicomLibrary\oflog.lib(threads.obj) DXSDICOMLIBRARY
Error   3037    error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::setg(char *,char *,char *)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]) 
Error   1658    error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Lockit::~_Lockit(void)" ([email protected]@@[email protected])    
Error   2788    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> > *)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected][email protected]@[email protected]@@[email protected]@Z)    
Error   1680    error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::locale::id::operator unsigned int(void)" ([email protected]@[email protected]@QAEIXZ)  
Error   1691    error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall std::codecvt_base::always_noconv(void)const " ([email protected][email protected]@@QBE_NXZ) 
Error   2620    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)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected])   
Error   2840    error LNK2001: unresolved external symbol "public: virtual void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@UAEXXZ)   
Error   1666    error LNK2019: unresolved external symbol "void __cdecl std::_Facet_Register(class std::_Facet_base *)" ([email protected]@@[email protected]@@Z) referenced in function "class std::codecvt<char,char,int> const & __cdecl std::use_facet<class std::codecvt<char,char,int> >(class std::locale const &)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@Z)

因此,我不确定在构建静态dcmtk库时使用哪个运行时选项,以及如何继续操作。任何帮助将不胜感激,因为我是这方面的新手

编辑:

这是我在使用/ MD Runtime构建时获得的输出

1>dcmimgle.lib(dimoimg.obj) : 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<<(unsigned short)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(digsdlut.obj) : 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<<(unsigned short)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmpstat.lib(dviface.obj) : error LNK2019: 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<<(unsigned short)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z) referenced in function "private: class OFCondition __thiscall DVInterface::createQueryRetrieveServerConfigFile(char const *)" (?createQueryRetrieveServerCon[email protected]@@[email protected]@[email protected])
1>dcmdata.lib(dcobject.obj) : 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<<(unsigned short)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcelem.obj) : 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<<(unsigned short)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcsequen.obj) : 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<<(unsigned short)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>ofstd.lib(ofconapp.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>oflog.lib(fileap.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>oflog.lib(oflog.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>oflog.lib(appender.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>oflog.lib(syncprims.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmnet.lib(dul.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmnet.lib(dimdump.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmqrdb.lib(dcmqrdbi.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>oflog.lib(patlay.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcdicent.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(digsdfn.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(diciefn.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmnet.lib(assoc.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmpstat.lib(dviface.obj) : error LNK2019: 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z) referenced in function "private: class OFCondition __thiscall DVInterface::createQueryRetrieveServerConfigFile(char const *)" ([email protected]@@[email protected]@[email protected])
1>dcmdata.lib(dcpxitem.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcvrobow.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dchashdi.obj) : 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<<(int)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmpstat.lib(dviface.obj) : error LNK2019: 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<<(long)" ([email protected]?$char_traits[email protected]@[email protected]@@[email protected]@[email protected]@Z) referenced in function "private: class OFCondition __thiscall DVInterface::createQueryRetrieveServerConfigFile(char const *)" ([email protected]@@[email protected]@[email protected])
1>dcmnet.lib(assoc.obj) : 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<<(long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmqrdb.lib(dcmqrdbi.obj) : 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<<(long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmsr.lib(dsrimgfr.obj) : 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<<(long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimage.lib(dicoimg.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmsr.lib(dsrtcosp.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>oflog.lib(threads.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(dimoimg.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(dimoimg3.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(dimoimg4.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(dimoimg5.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcsequen.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcdirrec.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(digsdfn.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmimgle.lib(diciefn.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcpixseq.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcpxitem.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcobject.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcelem.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmpstat.lib(dviface.obj) : error LNK2019: 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z) referenced in function "private: class OFCondition __thiscall DVInterface::createQueryRetrieveServerConfigFile(char const *)" ([email protected]@@[email protected]@[email protected])
1>dcmpstat.lib(dvsighdl.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcitem.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmdata.lib(dcddirif.obj) : 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<<(unsigned long)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@Z)
1>dcmsr.lib(dsrdoc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const std::basic_ostream<char,struct std::char_traits<char> >::`vftable'" ([email protected][email protected]@[email protected]@@[email protected]@[email protected])
1>dcmpstat.lib(dvsighdl.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) const std::basic_ostream<char,struct std::char_traits<char> >::`vftable'" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]) referenced in function "private: void __thiscall DVSignatureHandler::updateSignatureValidationOverview(void)" ([email protected]@@AAEXXZ)
1>dcmnet.lib(assoc.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const std::basic_ostream<char,struct std::char_traits<char> >::`vftable'" ([email protected][email protected]@[email protected]@@[email protected]@[email protected])
1>dcmnet.lib(dul.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const std::basic_ostream<char,struct std::char_traits<char> >::`vftable'" ([email protected][email protected]@[email protected]@@[email protected]@[email protected])
1>dcmnet.lib(dimdump.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) const std::basic_ostream<char,struct std::char_traits<char> >::`vftable'" ([email protected][email protected]@[email protected]@@[email protected]@[email protected])
 1>dcmnet.lib(dimdump.obj) : error LNK2019: 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::ios_base & (__cdecl*)(class std::ios_base &))" ([email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected]) referenced in function "void __cdecl DIMSE_printNStatusString(class std::basic_ostream<char,struct std::char_traits<char> > &,int)" ([email protected]@[email protected][email protected]@[email protected]@@[email protected]@[email protected])
 1>dcmnet.lib(dulparse.obj) : 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::ios_base & (__cdecl*)(class std::ios_base &))" ([email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected])
 1>dcmdata.lib(dcsequen.obj) : 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::ios_base & (__cdecl*)(class std::ios_base &))" ([email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected])
1>dcmdata.lib(dcvrat.obj) : 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::ios_base & (__cdecl*)(class std::ios_base &))" ([email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected])
1>dcmdata.lib(dcvrobow.obj) : 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::ios_base & (__cdecl*)(class std::ios_base &))" ([email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected])
 1>dcmnet.lib(dul.obj) : 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::ios_base & (__cdecl*)(class std::ios_base &))" ([email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected])
1>dcmdata.lib(dcitem.obj) : 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::ios_base & (__cdecl*)(class std::ios_base &))" ([email protected][email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected])
 1>dcmdata.lib(dcpxitem.obj) : 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::ios_base & (__cdecl*)(class std::ios_base &))" ([email protected]? [email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected])


1>..\..\Bin\DXSDICOMLIBRARY.dll : fatal error LNK1120: 89 unresolved externals
安基·辛格

我解决了上述问题,终于在奋斗了几天后找到了解决方案。现在,我正在/ MD中构建解决方案,并确保链接到的库也使用相同的设置进行编译。

关于解决方案,当我们在x86中构建项目时,在Linker选项的忽略特定默认库中添加了msvcprt.lib,但是现在在x64中构建时,这似乎是主要问题。我从忽略特定的默认库中删除了msvcprt.lib,然后构建正常且成功。

我仍然不知道的一件事是为什么它在x86上能正常工作,但在x64上却不能正常工作。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Visual Studio 2012中的Visual C ++运行时可分发2010

来自分类Dev

在没有MSVCRT运行时的情况下在Visual Studio 2012中编译C

来自分类Dev

Visual Studio 2010的Visual C ++ 2012运行时库先决条件

来自分类Dev

通过Visual Studio运行时忽略IE中的缓存

来自分类Dev

运行时未部署Visual Studio

来自分类Dev

在Visual Basic(Visual Studio 2019)的运行时中创建的ListView中的索引选择

来自分类Dev

脚本在Visual Studio中运行,但从批处理文件运行时则无法运行

来自分类Dev

在 PATH 上找不到运行时“节点”。在 Ubuntu 18.04 上运行的 Visual Studio Code 中

来自分类Dev

每次我运行时,Visual Studio都会构建项目

来自分类Dev

在Visual Studio上运行时程序变慢

来自分类Dev

从Visual Studio运行时,STARTUPINFO.wShowWindow为0

来自分类Dev

从Visual Studio运行时,PowerShell脚本结果不同

来自分类Dev

Visual Studio 2010无法安装VC 9.0运行时

来自分类Dev

如何使用msbuild使用2012 C ++运行时库构建Visual Studio 2010项目?

来自分类Dev

如何在运行时在Visual Studio中编辑C#代码,而不是编辑并继续

来自分类Dev

为什么Visual Studio运行时库源代码存储在两个目录中?

来自分类Dev

在不同凭据下运行时,在Visual Studio当前实例中打开文件

来自分类Dev

Visual Studio 2019中的ANTLR4运行时问题

来自分类Dev

在不同凭据下运行时,在Visual Studio当前实例中打开文件

来自分类Dev

如何在运行时在Visual Studio中编辑C#代码,而不是编辑并继续

来自分类Dev

MFPF 7.1-Windows 8.1应用程序在Visual Studio中运行时出现错误

来自分类Dev

在 Visual Studio 解决方案中设置所有项目的运行时库

来自分类Dev

是否可以在 Visual Studio 2017 中运行时编辑代码,即使启用了“编辑并继续”?

来自分类Dev

ASP.NET (Visual Studio) 中的 HTML 代码出现 Javascript 运行时错误

来自分类Dev

Visual Studio运行注释

来自分类Dev

Visual Studio 2012最终不兼容

来自分类Dev

Visual Studio 2012错误“不包含定义”

来自分类Dev

为什么我的 prgram 在 codechef ide 中显示运行时错误,而它不在 Visual Studio 中?

来自分类Dev

在Visual Studio Express 2012中运行C代码的问题

Related 相关文章

  1. 1

    Visual Studio 2012中的Visual C ++运行时可分发2010

  2. 2

    在没有MSVCRT运行时的情况下在Visual Studio 2012中编译C

  3. 3

    Visual Studio 2010的Visual C ++ 2012运行时库先决条件

  4. 4

    通过Visual Studio运行时忽略IE中的缓存

  5. 5

    运行时未部署Visual Studio

  6. 6

    在Visual Basic(Visual Studio 2019)的运行时中创建的ListView中的索引选择

  7. 7

    脚本在Visual Studio中运行,但从批处理文件运行时则无法运行

  8. 8

    在 PATH 上找不到运行时“节点”。在 Ubuntu 18.04 上运行的 Visual Studio Code 中

  9. 9

    每次我运行时,Visual Studio都会构建项目

  10. 10

    在Visual Studio上运行时程序变慢

  11. 11

    从Visual Studio运行时,STARTUPINFO.wShowWindow为0

  12. 12

    从Visual Studio运行时,PowerShell脚本结果不同

  13. 13

    Visual Studio 2010无法安装VC 9.0运行时

  14. 14

    如何使用msbuild使用2012 C ++运行时库构建Visual Studio 2010项目?

  15. 15

    如何在运行时在Visual Studio中编辑C#代码,而不是编辑并继续

  16. 16

    为什么Visual Studio运行时库源代码存储在两个目录中?

  17. 17

    在不同凭据下运行时,在Visual Studio当前实例中打开文件

  18. 18

    Visual Studio 2019中的ANTLR4运行时问题

  19. 19

    在不同凭据下运行时,在Visual Studio当前实例中打开文件

  20. 20

    如何在运行时在Visual Studio中编辑C#代码,而不是编辑并继续

  21. 21

    MFPF 7.1-Windows 8.1应用程序在Visual Studio中运行时出现错误

  22. 22

    在 Visual Studio 解决方案中设置所有项目的运行时库

  23. 23

    是否可以在 Visual Studio 2017 中运行时编辑代码,即使启用了“编辑并继续”?

  24. 24

    ASP.NET (Visual Studio) 中的 HTML 代码出现 Javascript 运行时错误

  25. 25

    Visual Studio运行注释

  26. 26

    Visual Studio 2012最终不兼容

  27. 27

    Visual Studio 2012错误“不包含定义”

  28. 28

    为什么我的 prgram 在 codechef ide 中显示运行时错误,而它不在 Visual Studio 中?

  29. 29

    在Visual Studio Express 2012中运行C代码的问题

热门标签

归档