fatal error LNK1120: 12 个无法解析的外部命令

初学者到处晃悠 2014-10-08 10:19:14
部分代码


#if !defined AFX_PARAMETER_DEPTH_ESTIMATION_H
#define AFX_PARAMETER_DEPTH_ESTIMATION_H

#include "iostream"
#include "string"
#include "version.h"

#include "ParameterBase.h"

using namespace std;


class CParameterDepthEstimation : public ParameterBase
{

public:
CParameterDepthEstimation ();
virtual ~CParameterDepthEstimation ();

Int xInit ( Int argc, Char** argv);

Void setDepthType ( UInt ui ) { m_uiDepthType = ui; }
Void setSourceWidth ( UInt ui ) { m_uiSourceWidth = ui; }
Void setSourceHeight ( UInt ui ) { m_uiSourceHeight = ui; }
Void setStartFrame ( UInt ui ) { m_uiStartFrame = ui; }
Void setNumberOfFrames ( UInt ui ) { m_uiNumberOfFrames = ui; }

Void setLeftCameraName ( std::string s ) { m_cLeftCameraName = s; }
Void setCenterCameraName ( std::string s ) { m_cm_uiCenterCameraName = s; }
Void setRightCameraName ( std::string s ) { m_cRightCameraName = s; }
// ETRI start
Void setThresOfDepthDiff ( Int i ) { m_iThresOfDepthDiff = i; }
Void setMovingObjectsBSize ( Int i ) { m_iMovingObjectsBSize = i; }
Void setMotionSearchBSize ( Int i ) { m_iMotionSearchBSize = i; }
// ETRI end
Void setMinValDisSearchRange ( Int i ) { m_iMinValDisSearchRange = i; }
Void setMaxValDisSearchRange ( Int i ) { m_iMaxValDisSearchRange = i; }
Void setMinValDisRange ( Int i ) { m_iMinValDisRange = i; }
Void setMaxValDisRange ( Int i ) { m_iMaxValDisRange = i; }
Void setSmoothCoeff ( Double d) { m_dSmoothCoeff = d; }
Void setSmoothCoeff2 ( Double d) { m_dSmoothCoeff2 = d; } //Nagoya
Void setFileLeftView ( std::string s ) { m_cFileLeftView = s; }
Void setFileCenterView ( std::string s ) { m_cFileCenterView = s; }
Void setFileRightView ( std::string s ) { m_cFileRightView = s; }
Void setFileOutputDepth ( std::string s ) { m_cFileOutputDepth = s; }
Void setFileCamPara ( std::string s ) { m_cFileCamPara = s; }

Void setBaselineBasis ( UInt ui ) { m_uiBaselineBasis = ui; }

#ifdef SUB_PEL_PRECISION
Void setPrecision ( UInt ui ) { m_uiPrecision = ui; }
Void setSearchLevel ( UInt ui ) { m_uiSearchLevel = ui; }
Void setFilter ( UInt ui ) { m_uiFilter = ui; }
#endif
#ifdef ACCURATE_CORRESPONDENCE
Void setMatchingMethod ( UInt ui ) { m_uiMatchingMethod = ui; }
//Nagoya start
Void setMatchingBlock ( UInt ui ) { m_uiMatchingBlock = ui; }
Void setImageSegmentation ( UInt ui ) { m_uiImageSegmentation = ui; }
Void setSegmentationmethod ( UInt ui ) { m_uiSegmentationMethod = ui; }
Void setMaxCluster ( UInt ui ) { m_uiMaxCluster = ui; }
//Nagoya end
#endif

报错:
1>------ 已启动生成: 项目: depthestlibstatuc, 配置: Debug Win32 ------
1>生成启动时间为 2014/10/8 22:07:48。
1>InitializeBuildStatus:
1> 正在对“Debug\depthestlibstatuc.unsuccessfulbuild”执行 Touch 任务。
1>ClCompile:
1> 所有输出均为最新。
1>ManifestResourceCompile:
1> 所有输出均为最新。
1>ParameterDepthEstimation.obj : error LNK2019: 无法解析的外部符号 "protected: void __thiscall ParameterBase::release(void)" (?release@ParameterBase@@IAEXXZ),该符号在函数 "public: virtual __thiscall CParameterDepthEstimation::~CParameterDepthEstimation(void)" (??1CParameterDepthEstimation@@UAE@XZ) 中被引用
1>ParameterDepthEstimation.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall ParameterBase::xPrintParam(void)" (?xPrintParam@ParameterBase@@QAEXXZ),该符号在函数 "public: virtual int __thiscall CParameterDepthEstimation::xInit(int,char * *)" (?xInit@CParameterDepthEstimation@@UAEHHPAPAD@Z) 中被引用
1>ParameterDepthEstimation.obj : error LNK2019: 无法解析的外部符号 "public: int __thiscall ParameterBase::xReadFromCommandLine(int,char * *)" (?xReadFromCommandLine@ParameterBase@@QAEHHPAPAD@Z),该符号在函数 "public: virtual int __thiscall CParameterDepthEstimation::xInit(int,char * *)" (?xInit@CParameterDepthEstimation@@UAEHHPAPAD@Z) 中被引用
1>ParameterDepthEstimation.obj : error LNK2019: 无法解析的外部符号 "public: int __thiscall ParameterBase::xReadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?xReadFromFile@ParameterBase@@QAEHAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "public: virtual int __thiscall CParameterDepthEstimation::xInit(int,char * *)" (?xInit@CParameterDepthEstimation@@UAEHHPAPAD@Z) 中被引用
1>ParameterDepthEstimation.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall ConfigLineDbl::ConfigLineDbl(char *,double *,double)" (??0ConfigLineDbl@@QAE@PADPANN@Z),该符号在函数 "private: virtual unsigned int __thiscall CParameterDepthEstimation::setup(void)" (?setup@CParameterDepthEstimation@@EAEIXZ) 中被引用
1>ParameterDepthEstimation.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall ConfigLineInt::ConfigLineInt(char *,int *,int)" (??0ConfigLineInt@@QAE@PADPAHH@Z),该符号在函数 "private: virtual unsigned int __thiscall CParameterDepthEstimation::setup(void)" (?setup@CParameterDepthEstimation@@EAEIXZ) 中被引用
1>ParameterDepthEstimation.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall ConfigLineStr::ConfigLineStr(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *,char *)" (??0ConfigLineStr@@QAE@PADPAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z),该符号在函数 "private: virtual unsigned int __thiscall CParameterDepthEstimation::setup(void)" (?setup@CParameterDepthEstimation@@EAEIXZ) 中被引用
1>ParameterDepthEstimation.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall ConfigLineUInt::ConfigLineUInt(char *,unsigned int *,unsigned int)" (??0ConfigLineUInt@@QAE@PADPAII@Z),该符号在函数 "private: virtual unsigned int __thiscall CParameterDepthEstimation::setup(void)" (?setup@CParameterDepthEstimation@@EAEIXZ) 中被引用
1>Estimation.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall CIYuv::~CIYuv(void)" (??1CIYuv@@UAE@XZ),该符号在函数 "private: int __thiscall CEstimation::update_error_cost_etri(class CParameterDepthEstimation *,struct _IplImage *)" (?update_error_cost_etri@CEstimation@@AAEHPAVCParameterDepthEstimation@@PAU_IplImage@@@Z) 中被引用
1>Estimation.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall CIYuv::resize(int,int,int)" (?resize@CIYuv@@QAE_NHHH@Z),该符号在函数 "private: int __thiscall CEstimation::update_error_cost_etri(class CParameterDepthEstimation *,struct _IplImage *)" (?update_error_cost_etri@CEstimation@@AAEHPAVCParameterDepthEstimation@@PAU_IplImage@@@Z) 中被引用
1>Estimation.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CIYuv::CIYuv(void)" (??0CIYuv@@QAE@XZ),该符号在函数 "private: int __thiscall CEstimation::update_error_cost_etri(class CParameterDepthEstimation *,struct _IplImage *)" (?update_error_cost_etri@CEstimation@@AAEHPAVCParameterDepthEstimation@@PAU_IplImage@@@Z) 中被引用
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用
1>D:\depth map\ders_vs\depthestlibstatuc\Debug\depthestlibstatuc.exe : fatal error LNK1120: 12 个无法解析的外部命令
1>
1>生成失败。

...全文
5366 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
熊熊大叔 2014-10-10
  • 打赏
  • 举报
回复
compile已经通过了,这些错误是在link阶段报的。 因此不要看你自己写的代码,而是找这些函数在哪里实现的,是否没有加入编译工程。
赵4老师 2014-10-09
  • 打赏
  • 举报
回复
将错误信息中出现的标识符放在google里面搜一下,看其在哪个.lib中,然后在本地硬盘上搜索该.lib,如果没有,在网上搜索相关库或模块下载安装,然后将其所在目录填写到“附加依赖库所在目录”中,将其名字添加到“附加依赖库”中,重新连接。 VC6: 工程、设置、C/C++、分类:Preprocessor、附加包含路径:填写附加头文件所在目录 逗号间隔多项 工程、设置、Link、分类:Input、附加库路径:填写附加依赖库所在目录 分号间隔多项 工程、设置、Link、分类:Input、对象/库模块:填写附加依赖库的名字.lib 空格间隔多项 VS20xx: 项目、属性、C/C++、附加包含目录:填写附加头文件所在目录 分号间隔多项 项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项 项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项
勤奋的小游侠 2014-10-08
  • 打赏
  • 举报
回复
少了不少的函数实现。 ParameterBase.cpp 这个文件是不是没有添加到工程? 还是有一些lib库没有添加到工程

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧