错误信息:

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. 设置VSCode运行任务命令快捷键Alt+R,通常用于npm start(对频繁使用该命令可节省50%的输入命令行打字时间)
  2. 把所有的谎言献给你β(找规律数学题)
  3. 网红咖啡店的最后一晚:五道口的罗曼蒂克如何消亡
  4. 嵌入式Linux启动过程中的问题积累
  5. Ui设计中的动画如何应用,你知道吗?
  6. notepad++ :正则表达式系统教程(zz)
  7. Xilinx_Vivado_2019.1下载和安装教程
  8. wifi数据包解析_WIFI协议详解
  9. 写CSDN博客时,调节字体大小、颜色及其他样式的常用操作方法
  10. 邮件实现详解(一)------邮件发送的基本过程与概念
  11. 成都涌现大量网游业创业团队:从业人员近3万(网游亦可创业)
  12. ORAN C平面 Section Extension 2
  13. chrome浏览器解除网页右键点击屏蔽方法
  14. Hive的面试题总结
  15. TCP 三次握手原理,你真的理解吗?
  16. Django-数据库使用
  17. Texas Instruments
  18. 英语6级词汇量【原创】
  19. 基于MATLAB的数字信号处理(3) 用FFT对信号作频谱分析
  20. 以太网、令牌环、FDDI、ATM、WLAN

热门文章

  1. 无线游戏耳机推荐,四款好用无线蓝牙耳机
  2. 苹果新款第三代的 ‌AirPods ‌以及其充电盒曝光
  3. linux find查找文件并删除文件,Linux find 查找 并删除文件 杀掉进程
  4. 国产高性价比手机要凉凉?官方回应
  5. Vue页面转PDF(已解决分辨率、页边距问题)
  6. JAVA实现余弦相似度算法
  7. 小米支付Java高级工程师面试
  8. Win10安装WSL2(matebook 14锐龙版)
  9. ios 检测是否联网_具透 | 你可能不知道,iOS 10 有一个中国「特供」的联网权限功能...
  10. numpy的nonzero()和logical_and/or/not()