| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 806 人关注过本帖
标题: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
快速回复:ABOUT LNK2001
数据加载中...
 
   



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

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