error LNK2019: 无法解析的外部符号 ....... 该符号在函数 ... 中被引用

error LNK2019: 无法解析的外部符号 "public: __thiscall CGdipButton::CGdipButton(void)" (??0CGdipButton@@QAE@XZ),该符号在函数 "public: __thiscall TestWindow::TestWindow(class CWnd *)" (??0TestWindow@@QAE@PAVCWnd@@@Z) 中被引用

 

在头文件中已经加了相关的头文件

#include "gdipbutton.h"

但会提示这个链接错误.

解决办法:  将.cpp中构造函数和析构函数的实现放在.h头文件中

不知道为什么会这样

其他详解:  http://blog.sina.com.cn/s/blog_9015f32301014pix.html

 


猜你喜欢

转载自blog.csdn.net/smartgps2008/article/details/7646534