码迷,mamicode.com
首页 > Windows程序 > 详细

转为win64后, MS的lib问题

时间:2016-05-13 10:38:45      阅读:767      评论:0      收藏:0      [点我收藏+]

标签:

    
技术分享
>   正在创建库 C:\Users\Administrator\Desktop\branch-Unicode-156\\Temp\Link\PointCloudMeasure\x64\Debug\PointCloudMeasure.lib 和对象 C:\Users\Administrator\Desktop\branch-Unicode-156\\Temp\Link\PointCloudMeasure\x64\Debug\PointCloudMeasure.exp
1>vtkXMLPointReader.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>msvcrtd.lib(_error_.obj) : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>PointCloudMeasureView.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>RtDlg.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>TrackerConnectDlg.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>TrackerManagementDlg.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>MainFrm.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>MeasurementDialog.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>PartTreeView.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>PointCloudMeasureDoc.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>AddWorkpieceDlg.obj : error LNK2019: 无法解析的外部符号 __imp_MultiByteToWideChar,该符号在函数 "public: wchar_t * __cdecl AddWorkpieceDlg::AnsiToUnicode(char const *)" (?AnsiToUnicode@AddWorkpieceDlg@@QEAAPEA_WPEBD@Z) 中被引用
1>DatabaseDlg.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>InsertData2DBDlg.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>LoginDlg.obj : error LNK2001: 无法解析的外部符号 __imp_MultiByteToWideChar
1>vtkXMLPointReader.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>msvcrtd.lib(_error_.obj) : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>PointCloudMeasureView.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>RtDlg.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>TrackerConnectDlg.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>TrackerManagementDlg.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>MainFrm.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>MeasurementDialog.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>PartTreeView.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>PointCloudMeasureDoc.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>AddWorkpieceDlg.obj : error LNK2019: 无法解析的外部符号 __imp_WideCharToMultiByte,该符号在函数 "public: char * __cdecl AddWorkpieceDlg::UnicodeToAnsi(wchar_t const *)" (?UnicodeToAnsi@AddWorkpieceDlg@@QEAAPEADPEB_W@Z) 中被引用
1>DatabaseDlg.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>InsertData2DBDlg.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>LoginDlg.obj : error LNK2001: 无法解析的外部符号 __imp_WideCharToMultiByte
1>PartTreeView.obj : error LNK2019: 无法解析的外部符号 __imp_LeaveCriticalSection,该符号在函数 "public: void __cdecl Standard_Mutex::Unlock(void)" (?Unlock@Standard_Mutex@@QEAAXXZ) 中被引用
1>PointCloudMeasureDoc.obj : error LNK2019: 无法解析的外部符号 __imp_GetModuleFileNameW,该符号在函数 "protected: __cdecl CPointCloudMeasureDoc::CPointCloudMeasureDoc(void)" (??0CPointCloudMeasureDoc@@IEAA@XZ) 中被引用
1>msvcrtd.lib(_pdblkup_.obj) : error LNK2001: 无法解析的外部符号 __imp_GetModuleFileNameW
1>atlsd.lib(AtlTraceModuleManager.obj) : error LNK2001: 无法解析的外部符号 __imp_GetModuleFileNameW
1>PointCloudMeasureDoc.obj : error LNK2019: 无法解析的外部符号 __imp_Sleep,该符号在函数 "public: virtual void __cdecl CPointCloudMeasureDoc::UpdateStatus(enum Leica_Tracker_Answer,int)" (?UpdateStatus@CPointCloudMeasureDoc@@UEAAXW4Leica_Tracker_Answer@@H@Z) 中被引用
1>PointCloudMeasureView.obj : error LNK2001: 无法解析的外部符号 __imp_Sleep
1>RadarVideoDlg.obj : error LNK2001: 无法解析的外部符号 __imp_Sleep
1>msvcrtd.lib(wcrtexew.obj) : error LNK2001: 无法解析的外部符号 __imp_Sleep
1>PointCloudMeasureView.obj : error LNK2019: 无法解析的外部符号 __imp_GetLastError,该符号在函数 "public: void __cdecl CPointCloudMeasureView::OnTrackerConnect(void)" (?OnTrackerConnect@CPointCloudMeasureView@@QEAAXXZ) 中被引用
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2001: 无法解析的外部符号 __imp_GetLastError
1>atlsd.lib(Allocate.obj) : error LNK2001: 无法解析的外部符号 __imp_GetLastError
1>PointCloudMeasureView.obj : error LNK2019: 无法解析的外部符号 __imp_DeleteFileW,该符号在函数 "public: void __cdecl CPointCloudMeasureView::OnTrackerSave(void)" (?OnTrackerSave@CPointCloudMeasureView@@QEAAXXZ) 中被引用
1>msvcrtd.lib(wcrtexew.obj) : error LNK2019: 无法解析的外部符号 __imp_GetStartupInfoW,该符号在函数 __tmainCRTStartup 中被引用
1>msvcrtd.lib(_error_.obj) : error LNK2019: 无法解析的外部符号 __imp_IsDebuggerPresent,该符号在函数 DebuggerKnownHandle 中被引用
1>msvcrtd.lib(gs_report.obj) : error LNK2001: 无法解析的外部符号 __imp_IsDebuggerPresent
1>atlsd.lib(Allocate.obj) : error LNK2001: 无法解析的外部符号 __imp_RaiseException
1>atlsd.lib(AtlTraceModuleManager.obj) : error LNK2001: 无法解析的外部符号 __imp_RaiseException
1>msvcrtd.lib(_error_.obj) : error LNK2019: 无法解析的外部符号 __imp_RaiseException,该符号在函数 "int __cdecl DebuggerProbe(unsigned long)" (?DebuggerProbe@@YAHK@Z) 中被引用
1>atlsd.lib(Externs.obj) : error LNK2001: 无法解析的外部符号 __imp_RaiseException
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2001: 无法解析的外部符号 __imp_RaiseException
1>atlsd.lib(atltime.obj) : error LNK2001: 无法解析的外部符号 __imp_RaiseException
1>msvcrtd.lib(_error_.obj) : error LNK2019: 无法解析的外部符号 __imp_DebugBreak,该符号在函数 "void __cdecl failwithmessage(void *,int,int,char const *)" (?failwithmessage@@YAXPEAXHHPEBD@Z) 中被引用
1>msvcrtd.lib(_error_.obj) : error LNK2019: 无法解析的外部符号 __imp_lstrlenA,该符号在函数 "void __cdecl _RTC_AllocaFailure(void *,struct _RTC_ALLOCA_NODE *,int)" (?_RTC_AllocaFailure@@YAXPEAXPEAU_RTC_ALLOCA_NODE@@H@Z) 中被引用
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2001: 无法解析的外部符号 __imp_lstrlenA
1>msvcrtd.lib(_error_.obj) : error LNK2019: 无法解析的外部符号 __imp_GetProcAddress,该符号在函数 "void __cdecl _RTC_AllocaFailure(void *,struct _RTC_ALLOCA_NODE *,int)" (?_RTC_AllocaFailure@@YAXPEAXPEAU_RTC_ALLOCA_NODE@@H@Z) 中被引用
1>msvcrtd.lib(_pdblkup_.obj) : error LNK2001: 无法解析的外部符号 __imp_GetProcAddress
1>msvcrtd.lib(_error_.obj) : error LNK2019: 无法解析的外部符号 __imp_LoadLibraryA,该符号在函数 "void __cdecl _RTC_AllocaFailure(void *,struct _RTC_ALLOCA_NODE *,int)" (?_RTC_AllocaFailure@@YAXPEAXPEAU_RTC_ALLOCA_NODE@@H@Z) 中被引用
1>msvcrtd.lib(_pdblkup_.obj) : error LNK2001: 无法解析的外部符号 __imp_LoadLibraryA
1>msvcrtd.lib(unhandld.obj) : error LNK2019: 无法解析的外部符号 __imp_SetUnhandledExceptionFilter,该符号在函数 __CxxSetUnhandledExceptionFilter 中被引用
1>msvcrtd.lib(gs_report.obj) : error LNK2001: 无法解析的外部符号 __imp_SetUnhandledExceptionFilter
1>msvcrtd.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp_QueryPerformanceCounter,该符号在函数 __security_init_cookie 中被引用
1>msvcrtd.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp_GetTickCount,该符号在函数 __security_init_cookie 中被引用
1>msvcrtd.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp_GetCurrentThreadId,该符号在函数 __security_init_cookie 中被引用
1>msvcrtd.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp_GetCurrentProcessId,该符号在函数 __security_init_cookie 中被引用
1>atlsd.lib(Externs.obj) : error LNK2001: 无法解析的外部符号 __imp_GetCurrentProcessId
1>atlsd.lib(AtlTraceModuleManager.obj) : error LNK2001: 无法解析的外部符号 __imp_GetCurrentProcessId
1>msvcrtd.lib(gs_support.obj) : error LNK2019: 无法解析的外部符号 __imp_GetSystemTimeAsFileTime,该符号在函数 __security_init_cookie 中被引用
1>atlsd.lib(atltime.obj) : error LNK2001: 无法解析的外部符号 __imp_GetSystemTimeAsFileTime
1>msvcrtd.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 __imp_TerminateProcess,该符号在函数 __report_gsfailure 中被引用
1>msvcrtd.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 __imp_GetCurrentProcess,该符号在函数 __report_gsfailure 中被引用
1>msvcrtd.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 __imp_UnhandledExceptionFilter,该符号在函数 __report_gsfailure 中被引用
1>msvcrtd.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 RtlVirtualUnwind,该符号在函数 __report_gsfailure 中被引用
1>msvcrtd.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 RtlLookupFunctionEntry,该符号在函数 __report_gsfailure 中被引用
1>msvcrtd.lib(gs_report.obj) : error LNK2019: 无法解析的外部符号 __imp_RtlCaptureContext,该符号在函数 __report_gsfailure 中被引用
1>msvcrtd.lib(_pdblkup_.obj) : error LNK2019: 无法解析的外部符号 __imp_HeapFree,该符号在函数 "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPEAEPEA_WKPEAH1K@Z) 中被引用
1>msvcrtd.lib(_pdblkup_.obj) : error LNK2019: 无法解析的外部符号 __imp_HeapAlloc,该符号在函数 "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPEAEPEA_WKPEAH1K@Z) 中被引用
1>msvcrtd.lib(_pdblkup_.obj) : error LNK2019: 无法解析的外部符号 __imp_GetProcessHeap,该符号在函数 "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPEAEPEA_WKPEAH1K@Z) 中被引用
1>msvcrtd.lib(_pdblkup_.obj) : error LNK2019: 无法解析的外部符号 __imp_VirtualQuery,该符号在函数 "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPEAEPEA_WKPEAH1K@Z) 中被引用
1>msvcrtd.lib(_pdblkup_.obj) : error LNK2019: 无法解析的外部符号 __imp_FreeLibrary,该符号在函数 "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll@@YAPEAUHINSTANCE__@@XZ) 中被引用
1>atlsd.lib(atltypes.obj) : error LNK2019: 无法解析的外部符号 __imp_MulDiv,该符号在函数 "public: class CRect __cdecl CRect::MulDiv(int,int)const " (?MulDiv@CRect@@QEBA?AV1@HH@Z) 中被引用
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2019: 无法解析的外部符号 __imp_CloseHandle,该符号在函数 "void __cdecl ATL::NotifyTool(void)" (?NotifyTool@ATL@@YAXXZ) 中被引用
1>atlsd.lib(Allocate.obj) : error LNK2001: 无法解析的外部符号 __imp_CloseHandle
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2019: 无法解析的外部符号 __imp_SetEvent,该符号在函数 "void __cdecl ATL::NotifyTool(void)" (?NotifyTool@ATL@@YAXXZ) 中被引用
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2019: 无法解析的外部符号 __imp_OpenEventA,该符号在函数 "void __cdecl ATL::NotifyTool(void)" (?NotifyTool@ATL@@YAXXZ) 中被引用
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2019: 无法解析的外部符号 __imp_OutputDebugStringA,该符号在函数 AtlTraceVA 中被引用
1>atlsd.lib(AtlDebugAPI.obj) : error LNK2019: 无法解析的外部符号 __imp_OutputDebugStringW,该符号在函数 AtlTraceVU 中被引用
1>atlsd.lib(atltime.obj) : error LNK2019: 无法解析的外部符号 __imp_FileTimeToSystemTime,该符号在函数 "public: static int __cdecl ATL::CTime::IsValidFILETIME(struct _FILETIME const &)" (?IsValidFILETIME@CTime@ATL@@SAHAEBU_FILETIME@@@Z) 中被引用
1>atlsd.lib(atltime.obj) : error LNK2019: 无法解析的外部符号 __imp_FileTimeToLocalFileTime,该符号在函数 "public: static int __cdecl ATL::CTime::IsValidFILETIME(struct _FILETIME const &)" (?IsValidFILETIME@CTime@ATL@@SAHAEBU_FILETIME@@@Z) 中被引用
1>atlsd.lib(atltime.obj) : error LNK2019: 无法解析的外部符号 __imp_LocalFileTimeToFileTime,该符号在函数 "public: class ATL::CFileTime __cdecl ATL::CFileTime::LocalToUTC(void)const " (?LocalToUTC@CFileTime@ATL@@QEBA?AV12@XZ) 中被引用
1>atlsd.lib(Allocate.obj) : error LNK2019: 无法解析的外部符号 __imp_VirtualAlloc,该符号在函数 "public: bool __cdecl CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QEAA_NPEBDK@Z) 中被引用
1>atlsd.lib(Allocate.obj) : error LNK2019: 无法解析的外部符号 __imp_UnmapViewOfFile,该符号在函数 "public: bool __cdecl CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QEAA_NPEBDK@Z) 中被引用
1>atlsd.lib(Allocate.obj) : error LNK2019: 无法解析的外部符号 __imp_GetSystemInfo,该符号在函数 "public: bool __cdecl CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QEAA_NPEBDK@Z) 中被引用
1>atlsd.lib(Allocate.obj) : error LNK2019: 无法解析的外部符号 __imp_MapViewOfFile,该符号在函数 "public: bool __cdecl CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QEAA_NPEBDK@Z) 中被引用
1>atlsd.lib(Allocate.obj) : error LNK2019: 无法解析的外部符号 __imp_CreateFileMappingA,该符号在函数 "public: bool __cdecl CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QEAA_NPEBDK@Z) 中被引用
1>atlsd.lib(Allocate.obj) : error LNK2019: 无法解析的外部符号 __imp_GetCurrentThread,该符号在函数 "public: bool __cdecl CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QEAA_NPEBDK@Z) 中被引用
1>atlsd.lib(Allocate.obj) : error LNK2019: 无法解析的外部符号 __imp_OpenFileMappingA,该符号在函数 "public: bool __cdecl CAtlAllocator::Open(char const *)" (?Open@CAtlAllocator@@QEAA_NPEBD@Z) 中被引用
1>C:\Users\Administrator\Desktop\branch-Unicode-156\\Temp\Link\PointCloudMeasure\x64\Debug\PointCloudMeasure.exe : fatal error LNK1120: 47 个无法解析的外部命令



==
解决:
这涉及到调用的windowsSDKs的调用问题, 必须要调用准确当前平台的lib文件;
本次的问题出现在 当前项目目录中存在kernel32.lib文件, 该文件是很久之前拷贝的win32 平台下的文件, 所以才导致这样的问题;删除过后,就立马正确了;












转为win64后, MS的lib问题

标签:

原文地址:http://www.cnblogs.com/skyhuangdan/p/5486719.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!