标题:ABOUT LNK2001
只看楼主
指向指针的指针
Rank: 1
等 级:新手上路
帖 子:339
专家分:0
注 册:2004-8-8
 问题点数:0 回复次数:4 
ABOUT LNK2001

编译的时候在连接时出现

Linker Tools Error LNK2001错误 查了MSDN应该是 When using C++, make sure that you include the implementation of a specific function for a class and not just a prototype in the class definition. 这条, 那么怎么解决呀(除了在头文件里写内联函数,还有没有其他方法?)

[此贴子已经被作者于2005-7-1 10:35:15编辑过]

搜索更多相关主题的帖子: ABOUT class Linker prototype 
2005-07-01 10:34
指向指针的指针
Rank: 1
等 级:新手上路
帖 子:339
专家分:0
注 册:2004-8-8
得分:0 
...

/sign.png" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./sign.png');}" onmousewheel="return imgzoom(this);" alt="" />
2005-07-04 13:10
指向指针的指针
Rank: 1
等 级:新手上路
帖 子:339
专家分:0
注 册:2004-8-8
得分:0 
..............

/sign.png" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./sign.png');}" onmousewheel="return imgzoom(this);" alt="" />
2005-07-06 18:05
yameng
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2005-7-6
得分:0 
以下是引用指向指针的指针在2005-7-1 10:34:25的发言:

编译的时候在连接时出现

Linker Tools Error LNK2001错误 查了MSDN应该是 When using C++, make sure that you include the implementation of a specific function for a class and not just a prototype in the class definition. 这条, 那么怎么解决呀(除了在头文件里写内联函数,还有没有其他方法?)

好象是说函数只有声明没有实现吧。


http://www.
新手,请多关照
2005-07-06 22:03
指向指针的指针
Rank: 1
等 级:新手上路
帖 子:339
专家分:0
注 册:2004-8-8
得分:0 
我用一个头文件放类的声明,用一个CPP放类的实现,还有一个cpp放MAIN()
但是内联函数我用INLINE关键字放到CPP里面的,我说除了吧它们放到头文件里面还有没有其他方法解决问题?

/sign.png" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./sign.png');}" onmousewheel="return imgzoom(this);" alt="" />
2005-07-07 15:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-21951-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.365936 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved