| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1027 人关注过本帖
标题:链接错误
只看楼主 加入收藏
三少爷
Rank: 1
等 级:新手上路
帖 子:192
专家分:0
注 册:2004-4-29
收藏
 问题点数:0 回复次数:0 
链接错误

#include<iostream.h> #include<afx.h> #include<afxcoll.h> #define NUMBER 5 class A:public CObject { int age; public: A(int x):age(x){} void operator!(){cout<<age<<endl;} }; void main() { int x=-1; CObList list; A *p[NUMBER]; cout<<"Please input "<<NUMBER<<" integers"<<endl; for(int i=0;i<NUMBER;i++) { while(x<0)cin>>x; p[i]=new A(x); list.AddHead(p[i]); x=-1; } cout<<"The total number is "<<list.GetCount()<<endl; !*((A*)list.GetHead()); if(list.Find(p[2]))!*p[2]; !*((A*)list.GetAt(list.FindIndex(3))); cout<<flush; cin.get(); list.RemoveAll(); }

Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/CHAPTER4-17.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe.

CHAPTER4-17.exe - 3 error(s), 0 warning(s)

高手能帮忙指出到底该怎么解决吗

搜索更多相关主题的帖子: 链接 
2004-11-07 23:19
快速回复:链接错误
数据加载中...
 
   



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

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