error LNK2019: 无法解析的外部符号 public: void __thiscall
错误信息:
error LNK2019: 无法解析的外部符号 "public: void __thiscall CArcBall::setBounds(int,int)" (?setBounds@CArcBall@@QAEXHH@Z),该符号在函数 "public: void __thiscall CChild3DView::OnSize(unsigned int,int,int)" (?OnSize@CChild3DView@@QAEXIHH@Z) 中被引用
1>D:\Visual Studio 2008\mod\mod\Debug\mod.exe : fatal error LNK1120: 1 个无法解析的外部命令
错误代码:
XXX.h
inlinevoid setBounds(int NewWidth, int NewHeight);
XXX.cpp
void CArcBall::setBounds(int NewWidth, int NewHeight)
{//设置长宽的调整因子this->AdjustWidth = 1.0f / (((GLfloat)NewWidth - 1.0f) * 0.5f);this->AdjustHeight = 1.0f / (((GLfloat)NewHeight - 1.0f) * 0.5f);
}
呵呵,因为之前这个函数的定义是直接放在.h文件里的,就用了inline,结果放到源文件里的时候就没有注意。。。。。
解决办法:
去掉 inline 就好了~~
error LNK2019: 无法解析的外部符号 public: void __thiscall相关推荐
- VC++常见错误原因解析之error LNK2019: 无法解析的外部符号 public: void __thiscall
VC++常见错误原因解析之error LNK2019: 无法解析的外部符号 "public: void __thiscall 出现这个错误,应该首先查看"#include" ...
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 public: void __thiscall
error LNK2019: 无法解析的外部符号 "public: void __thiscall 遇到这种情况原因有二个,简单点说: 其一:某个方法只是在.h里面声明,没有在cpp里面实现 ...
- error LNK2019: 无法解析的外部符号 “public: __cdecl ...,函数 ...中引用了该符号解决办法
vs报错输出如下所示: 1>myview.obj : error LNK2019: 无法解析的外部符号 "public: __cdecl CSPReport::CSPReport(vo ...
- 错误 LNK2019 无法解析的外部符号 “public: void __cdecl cv::Mat::copyTo(class cv::debug_build_guard::_OutputArray
错误 LNK2019 无法解析的外部符号 "public: void __cdecl cv::Mat::copyTo(class cv::debug_build_guard::_Output ...
- 错误 LNK2019 无法解析的外部符号 “public: void __cdecl cv::Mat::copyTo(class cv::debug_build_guard::_OutputArray
编译ORM_SLAM3中的DBoW2 环境:win10+vs2017,DEBUG x64 opencv为3.1.0 出现错误: 错误 LNK2019 无法解析的外部符号 "pub ...
- error LNK2019: 无法解析的外部符号 public: virtual void * __thiscall
vs2010,qt5.7 error LNK2001: 无法解析的外部符号 "public: virtual void * __thiscall MyThread::qt_metacast( ...
- mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 public: __cdecl about::about(class QWidget *) (??0abo
1.qt项目中新建的子类窗口dialog编译不过的方法是: 2.先把生成的debug文件全部删除,然后点菜单中的构建,然后重新进行构建项目,然后qmake, 之后重新编译.
- error LNK2019: 无法解析的外部符号 六处错误的纠正
错误 18 error LNK2019: 无法解析的外部符号 "public: void __thiscall cv::FeatureDetector::detect(class ...
- error LNK2019: 无法解析的外部符号 WinMain,该符号在函数 int __cdecl invoke_main(void)”中被引用
From:https://blog.csdn.net/u012570056/article/details/74639894 一,问题描述 MSVCRTD.lib(exe_winmain.obj) : ...
最新文章
- Num55 boss09(activiti安装以及API)
- 高级指令——kill指令、ifconfig指令、reboot指令、shutdown指令、uptime指令、uname指令
- Redis事件管理(三)
- 「Apollo」Apollo感知汇总
- 尚硅谷_jQuery_学习笔记
- spring一站式开发_Spring开发人员知道的一件事
- 华为手机什么时候更新鸿蒙系统_华为鸿蒙2.0系统发布,国产手机系统硬气了!...
- win10计算机错误代码,Win10错误代码:0xc00000f 解决方案
- Spring + MyBatis配置整合
- oracle判断字符串以什么开头_oracle存储过程 判断字符串开头
- ROST情感分析的语法规则_大数据之数据仓库Hive架构分析
- 软考__运筹学__2007年11月真题
- @OneToMany mappedBy
- 富媒体消息和传统短信有何区别?
- CC00051.elasticsearch——|HadoopElasticSearch.V03|——|ELK.v03Logstash部署.V3|
- SpringSecurity多种认证方式记录之自定义
- android系统手机流量控制方法amp;,基于Android的手机流量控制软件全解.doc
- azkaban任务一直处于preparing,解决办法
- Ubuntu 16.04 amd64下deb安装gcc5.4和所有依赖
- Kotlin 编码规约