从VC6到VS2005的有关问题
从VC6到VS2005的问题
我的工程在VC6下很正常,导入vs2005编译通过,出现了好多链接错误,大虾们帮看看啊...................
1>------ 已启动生成: 项目: TBSLineStat, 配置: Release Win32 ------
1>正在链接...
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : warning LNK4075: 忽略“/EDITANDCONTINUE”(由于“/INCREMENTAL:NO”规范)
1>.\TBSLineStat.def : warning LNK4222: 不应为导出符号“DllCanUnloadNow”分配序号
1>.\TBSLineStat.def : warning LNK4222: 不应为导出符号“DllGetClassObject”分配序号
1>.\TBSLineStat.def : warning LNK4222: 不应为导出符号“DllRegisterServer”分配序号
1>.\TBSLineStat.def : warning LNK4222: 不应为导出符号“DllUnregisterServer”分配序号
1> 正在创建库 .\Release/TBSLineStat.lib 和对象 .\Release/TBSLineStat.exp
1>LINK : warning LNK4098: 默认库“mfc80d.lib”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
1>LINK : warning LNK4098: 默认库“mfcs80d.lib”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
1>LINK : warning LNK4098: 默认库“msvcrtd.lib”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
1>LeftView.obj : error LNK2001: 无法解析的外部符号 _dbManage
1>RightView.obj : error LNK2001: 无法解析的外部符号 _dbManage
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2019: 无法解析的外部符号 "public: int __thiscall CRect::IntersectRect(struct tagRECT const *,struct tagRECT const *)" (?IntersectRect@CRect@@QAEHPBUtagRECT@@0@Z),该符号在函数 "protected: void __thiscall CDPSGridCtrl::EraseBkgnd(class CDC *)" (?EraseBkgnd@CDPSGridCtrl@@IAEXPAVCDC@@@Z) 中被引用
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2001: 无法解析的外部符号 "public: int __thiscall CRect::IntersectRect(struct tagRECT const *,struct tagRECT const *)" (?IntersectRect@CRect@@QAEHPBUtagRECT@@0@Z)
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2001: 无法解析的外部符号 "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A)
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2019: 无法解析的外部符号 "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A),该符号在函数 "public: class CGridCellBase * __thiscall CGridCtrl::GetCell(int,int)const " (?GetCell@CGridCtrl@@QBEPAVCGridCellBase@@HH@Z) 中被引用
1>TbsGridCtrl.lib(DPSGridCellBase.obj) : error LNK2001: 无法解析的外部符号 "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A)
1>TbsGridCtrl.lib(GridCellBase.obj) : error LNK2001: 无法解析的外部符号 "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A)
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2001: 无法解析的外部符号 "class ATL::CTraceCategory ATL::atlTraceGeneral" (?atlTraceGeneral@ATL@@3VCTraceCategory@1@A)
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2001: 无法解析的外部符号 "class ATL::CTraceCategory ATL::atlTraceGeneral" (?atlTraceGeneral@ATL@@3VCTraceCategory@1@A)
1>TbsGridCtrl.lib(DPSGridCellBase.obj) : error LNK2001: 无法解析的外部符号 "class ATL::CTraceCategory ATL::atlTraceGeneral" (?atlTraceGeneral@ATL@@3VCTraceCategory@1@A)
1>TbsGridCtrl.lib(GridCellBase.obj) : error LNK2001: 无法解析的外部符号 "class ATL::CTraceCategory ATL::atlTraceGeneral" (?atlTraceGeneral@ATL@@3VCTraceCategory@1@A)
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2019: 无法解析的外部符号 "public: void __thiscall CPoint::operator-=(struct tagPOINT)" (??ZCPoint@@QAEXUtagPOINT@@@Z),该符号在函数 "protected: class CPoint __thiscall CDPSGridCtrl::GetPointClicked(int,int,class CPoint const &)" (?GetPointClicked@CDPSGridCtrl@@IAE?AVCPoint@@HHABV2@@Z) 中被引用
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2001: 无法解析的外部符号 "public: void __thiscall CPoint::operator-=(struct tagPOINT)" (??ZCPoint@@QAEXUtagPOINT@@@Z)
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2019: 无法解析的外部符号 "public: int __thiscall CPoint::operator!=(struct tagPOINT)const " (??9CPoint@@QBEHUtagPOINT@@@Z),该符号在函数 "protected: void __thiscall CDPSGridCtrl::OnLButtonUp(unsigned int,class CPoint)" (?OnLButtonUp@CDPSGridCtrl@@IAEXIVCPoint@@@Z) 中被引用
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2001: 无法解析的外部符号 "public: int __thiscall CPoint::operator!=(struct tagPOINT)const " (??9CPoint@@QBEHUtagPOINT@@@Z)
我的工程在VC6下很正常,导入vs2005编译通过,出现了好多链接错误,大虾们帮看看啊...................
1>------ 已启动生成: 项目: TBSLineStat, 配置: Release Win32 ------
1>正在链接...
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : warning LNK4075: 忽略“/EDITANDCONTINUE”(由于“/INCREMENTAL:NO”规范)
1>.\TBSLineStat.def : warning LNK4222: 不应为导出符号“DllCanUnloadNow”分配序号
1>.\TBSLineStat.def : warning LNK4222: 不应为导出符号“DllGetClassObject”分配序号
1>.\TBSLineStat.def : warning LNK4222: 不应为导出符号“DllRegisterServer”分配序号
1>.\TBSLineStat.def : warning LNK4222: 不应为导出符号“DllUnregisterServer”分配序号
1> 正在创建库 .\Release/TBSLineStat.lib 和对象 .\Release/TBSLineStat.exp
1>LINK : warning LNK4098: 默认库“mfc80d.lib”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
1>LINK : warning LNK4098: 默认库“mfcs80d.lib”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
1>LINK : warning LNK4098: 默认库“msvcrtd.lib”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
1>LeftView.obj : error LNK2001: 无法解析的外部符号 _dbManage
1>RightView.obj : error LNK2001: 无法解析的外部符号 _dbManage
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2019: 无法解析的外部符号 "public: int __thiscall CRect::IntersectRect(struct tagRECT const *,struct tagRECT const *)" (?IntersectRect@CRect@@QAEHPBUtagRECT@@0@Z),该符号在函数 "protected: void __thiscall CDPSGridCtrl::EraseBkgnd(class CDC *)" (?EraseBkgnd@CDPSGridCtrl@@IAEXPAVCDC@@@Z) 中被引用
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2001: 无法解析的外部符号 "public: int __thiscall CRect::IntersectRect(struct tagRECT const *,struct tagRECT const *)" (?IntersectRect@CRect@@QAEHPBUtagRECT@@0@Z)
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2001: 无法解析的外部符号 "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A)
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2019: 无法解析的外部符号 "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A),该符号在函数 "public: class CGridCellBase * __thiscall CGridCtrl::GetCell(int,int)const " (?GetCell@CGridCtrl@@QBEPAVCGridCellBase@@HH@Z) 中被引用
1>TbsGridCtrl.lib(DPSGridCellBase.obj) : error LNK2001: 无法解析的外部符号 "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A)
1>TbsGridCtrl.lib(GridCellBase.obj) : error LNK2001: 无法解析的外部符号 "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A)
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2001: 无法解析的外部符号 "class ATL::CTraceCategory ATL::atlTraceGeneral" (?atlTraceGeneral@ATL@@3VCTraceCategory@1@A)
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2001: 无法解析的外部符号 "class ATL::CTraceCategory ATL::atlTraceGeneral" (?atlTraceGeneral@ATL@@3VCTraceCategory@1@A)
1>TbsGridCtrl.lib(DPSGridCellBase.obj) : error LNK2001: 无法解析的外部符号 "class ATL::CTraceCategory ATL::atlTraceGeneral" (?atlTraceGeneral@ATL@@3VCTraceCategory@1@A)
1>TbsGridCtrl.lib(GridCellBase.obj) : error LNK2001: 无法解析的外部符号 "class ATL::CTraceCategory ATL::atlTraceGeneral" (?atlTraceGeneral@ATL@@3VCTraceCategory@1@A)
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2019: 无法解析的外部符号 "public: void __thiscall CPoint::operator-=(struct tagPOINT)" (??ZCPoint@@QAEXUtagPOINT@@@Z),该符号在函数 "protected: class CPoint __thiscall CDPSGridCtrl::GetPointClicked(int,int,class CPoint const &)" (?GetPointClicked@CDPSGridCtrl@@IAE?AVCPoint@@HHABV2@@Z) 中被引用
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2001: 无法解析的外部符号 "public: void __thiscall CPoint::operator-=(struct tagPOINT)" (??ZCPoint@@QAEXUtagPOINT@@@Z)
1>TbsGridCtrl.lib(DPSGridCtrl.obj) : error LNK2019: 无法解析的外部符号 "public: int __thiscall CPoint::operator!=(struct tagPOINT)const " (??9CPoint@@QBEHUtagPOINT@@@Z),该符号在函数 "protected: void __thiscall CDPSGridCtrl::OnLButtonUp(unsigned int,class CPoint)" (?OnLButtonUp@CDPSGridCtrl@@IAEXIVCPoint@@@Z) 中被引用
1>TbsGridCtrl.lib(GridCtrl.obj) : error LNK2001: 无法解析的外部符号 "public: int __thiscall CPoint::operator!=(struct tagPOINT)const " (??9CPoint@@QBEHUtagPOINT@@@Z)