错误信息:

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相关推荐

  1. VC++常见错误原因解析之error LNK2019: 无法解析的外部符号 public: void __thiscall

    VC++常见错误原因解析之error LNK2019: 无法解析的外部符号 "public: void __thiscall 出现这个错误,应该首先查看"#include" ...

  2. VC++常规错误之一:error LNK2019: 无法解析的外部符号 public: void __thiscall

    error LNK2019: 无法解析的外部符号 "public: void __thiscall 遇到这种情况原因有二个,简单点说: 其一:某个方法只是在.h里面声明,没有在cpp里面实现 ...

  3. error LNK2019: 无法解析的外部符号 “public: __cdecl ...,函数 ...中引用了该符号解决办法

    vs报错输出如下所示: 1>myview.obj : error LNK2019: 无法解析的外部符号 "public: __cdecl CSPReport::CSPReport(vo ...

  4. 错误 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 ...

  5. 错误 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 ...

  6. error LNK2019: 无法解析的外部符号 public: virtual void * __thiscall

    vs2010,qt5.7 error LNK2001: 无法解析的外部符号 "public: virtual void * __thiscall MyThread::qt_metacast( ...

  7. mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 public: __cdecl about::about(class QWidget *) (??0abo

    1.qt项目中新建的子类窗口dialog编译不过的方法是: 2.先把生成的debug文件全部删除,然后点菜单中的构建,然后重新进行构建项目,然后qmake, 之后重新编译.

  8. error LNK2019: 无法解析的外部符号 六处错误的纠正

    错误    18    error LNK2019: 无法解析的外部符号 "public: void __thiscall cv::FeatureDetector::detect(class ...

  9. error LNK2019: 无法解析的外部符号 WinMain,该符号在函数 int __cdecl invoke_main(void)”中被引用

    From:https://blog.csdn.net/u012570056/article/details/74639894 一,问题描述 MSVCRTD.lib(exe_winmain.obj) : ...

最新文章

  1. Num55 boss09(activiti安装以及API)
  2. 高级指令——kill指令、ifconfig指令、reboot指令、shutdown指令、uptime指令、uname指令
  3. Redis事件管理(三)
  4. 「Apollo」Apollo感知汇总
  5. 尚硅谷_jQuery_学习笔记
  6. spring一站式开发_Spring开发人员知道的一件事
  7. 华为手机什么时候更新鸿蒙系统_华为鸿蒙2.0系统发布,国产手机系统硬气了!...
  8. win10计算机错误代码,Win10错误代码:0xc00000f 解决方案
  9. Spring + MyBatis配置整合
  10. oracle判断字符串以什么开头_oracle存储过程 判断字符串开头
  11. ROST情感分析的语法规则_大数据之数据仓库Hive架构分析
  12. 软考__运筹学__2007年11月真题
  13. @OneToMany mappedBy
  14. 富媒体消息和传统短信有何区别?
  15. CC00051.elasticsearch——|HadoopElasticSearch.V03|——|ELK.v03Logstash部署.V3|
  16. SpringSecurity多种认证方式记录之自定义
  17. android系统手机流量控制方法amp;,基于Android的手机流量控制软件全解.doc
  18. azkaban任务一直处于preparing,解决办法
  19. Ubuntu 16.04 amd64下deb安装gcc5.4和所有依赖
  20. Kotlin 编码规约

热门文章

  1. 抖音最重要的四个知识点
  2. 细分到市级的中国数据地图生成模板
  3. 大前天,我借了210000给深圳的表姐还房贷
  4. endnote没有出现在word工具栏
  5. [持续更新]总结与感悟:代码与狼生
  6. 三、 网际互联的网络层——网际控制【计算机网络全景梳理系列】
  7. 第159篇 笔记-区块链的升级与分叉
  8. 前端:鼠标悬停小手样式
  9. es6.6.2 同义词
  10. 名帖169 虞世南 行草《疲朽帖》