| DarKMoon's profileDarKMoon Hope ver.PhotosBlogLists | Help |
|
June 15 What is love?从别人的blog看到的一篇文章,原文如下
爱就是怎么看你怎么顺眼。我喜欢你笑的样子,喜欢你发脾气的样子,喜欢你耍赖皮的样子,当然也喜欢你西装革履象模象样的样子。你在正儿八经地发脾气,我却觉得你可爱,怎么办呢?
——爱的感觉·施岷
有太多太多的话无从说起,有太多太多的感受埋在心底。不要太过奢华,不要太多的甜言蜜语,只要每一天都能生活在一起,守着一个小小的家,彼此心里有着彼此,虽然平平淡淡却也充满乐趣。一个眼神,一个拥抱,一份关心,就让心融化在暖暖的春风里。我满足了,无须多语。 ——有一个字,藏在心底·系海石 能够默默地凝望你的双眸,而你的目光也在我的眼中停留,我还有什么别的希求?虔诚地信奉着,一种难言的默契与温柔,无悔无忧
——给我的爱人·竹叶青青
男人对女人的爱,是不用语言的。他是你生病时,送药的一杯清水;他是你疲惫时,为你揉捏的那双温柔的大手;他是你伤心落泪时,递来的一方含香的纸巾;他是你无助时,让你依靠的宽厚的肩膀;他是你受到伤害时,第一个冲出来为你遮风拦雨的胸膛;他是每天夜里,为了你的性福而燃烧自己的狼(女人总认为男人的性是自私的,换个角度思考这个问题吧);他是你命中注定的男人。 ——大爱无言,小爱无私·阳光依旧
爱情就是彼此倾慕,相互关心,互相呵护,一生一世,白头偕老,历经风雨,不离不弃。 ——端午答题·竹林小溪
爱不成,索性从容一些,与其恨生恨死,不如立刻转身去寻找真正属于自己的那一份感情;爱不成,索性洒脱一些,与其用眼泪泡着自己,不如调整自己的心,去迎接崭新的未来。 ——爱不成,不生恨·敏事纳言 《邮差弗雷德》读后感 本来是帮别人写的,自己觉得还不错
新浪有这本书的连载,点击这里
从平凡到杰出--《邮差弗雷德》读后感
读完《邮差弗雷德》这本书,我被弗雷德深深地感染、激励。我想之所以它能感动那么多人,能在众多励志书籍中脱颖而出,主要是因为我们大多数人是平凡的,而该书以平凡的人物在平凡的工作岗位,以不平凡的工作态度和工作能力所创造出来的不平凡的工作效应告诉我们:每个人都可以不平凡。 让我感受最深刻的是弗雷德们的真诚、激情、创新,这些点点滴滴的平凡的事对接受者能产生深刻的感受,因为这些平凡的事我们所有人都可以做。而在现实生活中,我们往往因为只重视那些过分的不必要的“欲念”,往往忽略了或者根本没意识到这些小事的重要性,往往忽略了自己生活中、工作中的每一件小事所带来的快乐和成就,结果却一事无成,失去了不平凡的机会。弗雷德的感动大家的地方是他自己高度的责任心与创新精神,他从自己平凡琐碎的工作中创造快乐,自己也会获得同等的快乐,是工作被认可的快乐,是因顾客的满意而快乐。在弗雷德的价值观里:提供服务,不是一种责任,而是一次机会;因为他知道,提供帮助比接受帮助更快乐。通过学习弗雷德的精神,我们可以得到人生最重要的东西,即灵魂的安宁和心灵的充实。 弗雷德和他的工作方式,对于当今社会任何希望有所成就以及脱颖而出的人们来说,都是极为实用的象征。我参加工作以来,都是尽职尽责的把每一件事做好,可时间一长,感觉工作毫无创新、枯燥无味,感觉自己像一个机器人一样,每天在做重复相同的无创新的工作。通过这个故事我才发现并不是工作让自己成为机器人,而是自己让自己成为机器人。如果工作毫无乐趣,每天也就只会简单重复。回想曾有同事跟我抱怨这个工作岗位如何如何不好,现在想起来,我觉得我们应该把每一件小事做好,提高客户的服务质量,从中感受乐趣;在工作思考更好,创新的东西,从中寻找乐趣。 弗雷德的精神不仅对个人的发展有很好的指导,企业的成长壮大也是非常需要“弗雷德”精神的职员。书中提到,作者在一个会议上做演讲。会议的赞助人之一是一家邮递公司,他们认为“美国邮政”是自己的竞争对手。结果在那次演讲中,他们禁止作者使用弗雷德的例子。我想这是因为有“弗雷德”这种职员的存在,“美国邮政”公司的声誉也得到了提高,自然会带来企业效益的提高。 弗雷德,深深地影响了我们每一个人,让我们感受到其实我们离成功并非遥遥不可及。弗雷德,在平凡的工作岗位上做出不平凡的工作,我们同样是在平凡的工作岗位,同样也能够做出不平凡的工作,从而从平凡走向杰出。
March 26 我和魔兽的故事 上大学我才真正接触电脑游戏。大一的某一天,宿舍的一位舍友拿出一张魔兽的安装光盘,说:"我们去机房挑魔兽吧!"我怎么也没有想到,我会爱上魔兽。那时候,有一个对我很好的女孩Angel,我也很喜欢她,我想她很快就会成为我的第一个女朋友啦。但是她们学校却搞了一个活动,Angel通过这个活动出国了。与她的离别是很淡的,互相微笑着说再见,但是这时候我心里却对自己说:我也要出国,去到Angel的国度去。本应该好好努力的我之后的日子却完全投入在魔兽,大一上学期期末考试成绩非常不理想,回想起高中那个总是努力学习的我,我堕落了。这个样子还谈什么出国?放弃吧,人家在外国一定会有好的前途的,你已经配不上别人了。从此我主动断绝了一切跟Angel的联系,没有给她任何理由,Angel和我的电话也由小时级变成分钟级。后来换了宿舍,我也没告诉Angel新的电话号码。但是后来Angel居然通过问我的朋友,问我的家人问到了我的新号码,这反倒更加坚定我放弃她的念头:断,就断的彻底点吧。Angel发现了我的反常,她没有生气,反而一直在努力着。假期她来到了北京,打电话让我出去玩,却被我推说有事,拒绝了。此后,就再也没有她的消息了,我想她终于也生气了吧。看着电脑屏幕的魔兽画面:还是你好,永远不会生我的气。一直到大三上学期,我每天都是早上一起床就玩着魔兽,一直到晚上熄灯。拿着越来越惨不忍睹的成绩,我再也没有大一第一个学期面对时候的伤感了,我一点也不伤心---只要能和你在一起,那就够了。
到了大三上学期,我已经成功成为学校魔兽战队的一线队员,整个学校能赢我的人也屈指可数了。但是大三上学期期末,我挂了两门科。这两门科,却挂醒了我。于是我决定好好学习了,什么魔兽,我已经玩腻了。事实证明我还是很有天赋的,大三下学期通信原理期中考试,我取得了80+的高分,整个班上只有3个上80的人。这时候魔兽战队队长找我,问我动感地带一个高校的比赛参不参加?我说我不想参加。队长劝我说我的实力是很强的,如果参加的话我们学校会取得好成绩的,在整个学校,我的实力确实已经可以稳居前五了。正在犹豫中,不少战队的朋友都很热情地邀请我打这个比赛。我答应了队长的要求,同时我提出我的打算:这场比赛之后,我再也不打比赛了。既然是告别赛,当然要好好打。我投入了很多时间,后来赛制莫名其妙改成了个人赛,而我也取得了第二名的好成绩,队长取得了第一名。哈哈,我也来了个激流勇退。这个学期就这样过去了,期末考试也是不理想,但是想到能为战队带来荣誉,尽自己一份力,我还是很高兴得,这一点付出很值得。学习嘛,下学期好好学。
大三下学期了,我在战队主页发了一张我退出一线的帖子,我没有选择退出魔兽,因为我爱魔兽,爱这个战队,回帖的朋友很多,顶到了十大,这让我非常感动,我回帖说以后还是会一直在的。战队战斗组组长为我保留了战斗组的位置,告诉我以后想打比赛可以随时过来。除了感谢,我什么都没有说。真的很不想离开战队。嗯,这学期要准备考研了,考哪儿呢?给自己提个好好奋斗的目标---考外校吧,现在好好想想看要怎么做。高校联赛开始了,有很多人关心我打不打,战队的负责人分别问我打不打?我感到朋友们对我的信任,我没有表现出任何犹豫,答应再打一次比赛:呵呵,那就考本校啦。
学习又被搁在了一边,到了大四了,这个时间已经不允许我再花时间在别的东西上面了。我这次没有发帖说我退出的事,我对新队长说我要考研,不会再打比赛了,新任队长觉得有点可惜,但是还是很理解我,从此,比赛名单中再也没有了我。我感到了无比的轻松,还有一丝丝伤感。总之不管这么多了,好好考研吧,从此我开始了每天早起占座,抹黑回宿舍的生活。新的一届高校联赛开始了,由于不少大三大四成员的离去,战队成绩好像不理想。日子还是这样过,一天晚上我正在教三自习,手机忽然响了,说这次高校联赛缺人,让我去代打一场比赛。我挂了电话,立即往宿舍跑去,虽然手感已经不如以前好,但是对手实力一般,我凭借自己的经验拿下了比赛。我有点高兴也有点难过,不过我没有表现出来,问清楚没事了,看了看表九点多,于是走回自习室再看了一会书。下学期,我回来吧。
考研成绩出来了,我的分数还可以,但是不够第一志愿,这使我不得不找调剂或者找工作。我第一次知道了简历这个东西,了解了一下简历的写法:1、社会实践,项目经验?-参加过很多电子竞技比赛。2、所获荣誉?-拿过北京市高校魔兽比赛的第二名。3、担任过什么职务?-学生会没去过,但是我在魔兽战队是很重要的成员,在里面也有比较好的人际关系。4、学习成绩?-比较差,因为花了比较多的时间打游戏和交朋友,但是很勤奋,头脑也可以,考研成绩可以间接说明。结果调剂失败了,工作,也没有找到,我根本没有社会上认同的东西。看着朋友们上研,找到工作,甚至是那些分比我低的,也找到了出路,我却,什么都没有着落。我感到了我是多么的无助。因为我的经历全是魔兽?我一直很努力做好一个战队队员,为什么这个时候要被淘汰?因为魔兽,你是一个游戏么?因为我的方向错了吗?
是啊,一切都是错误。我沉迷于你失去了我第一个女孩,虽然我最近跟她恢复了联系,但是我们却已经不可能了。我因为你,浪费了自己大量的学习时间,精力。战队,我不会再回去了,就当它是一场梦吧。魔兽,分手吧,我的简历不会写你的名字,我不会告诉别人我的生活曾有过你。我不后悔,感谢你改变了我,让我明白了朋友的重要。而正是这些,我们不能在一起了,今后我会好好努力的。只是那些人儿,那些事儿,已经不会再回来了。 March 24 或许这才是我喜欢的生活 今天毕业设计要去汇报学习情况,之前我感到非常慌张,因为不知道要干什么,不知道干了什么,于是随便准备了些东西,准备去忽悠过关。
人齐了之后,大家在桌子周围坐成一个圈,轮流汇报自己的情况,发表自己的想法,每个人都有自己学习的东西,与众不同的思想,然后轮到我,我虽然说得不好,也勉勉强强说出来了,发表了自己的观点,我忽然感到自己很有成就感,这时候我第一个想到的词就是:高手对话~
其实打魔兽能与Spirit_Moon,Fov,Sweet讨论一下战术还有自己独特的思想的话,其实感觉是一样的。不过我不是很热爱魔兽。因为我们不是生活的高手。
在一个大实验室里,与未来的IT精英们对话,对我来说或许是我追求的生活方式~只不过我现在积累太少,享受太多。还想什么呢?奋斗吧!! March 23 明白为什么有人自杀了 饿着肚子走了两个钟头找一个车站,未果,结果还是回宿舍了,赶紧打手机给对方道歉。
回到宿舍,辅导员给我打电话,让我去找调剂,算是个好消息吧,有人记得我。前两天,被我找调剂的老师婉言拒绝,回宿舍的路上还被带我毕业设计的老师一番奚落,说我成天在晃---------我就纳闷了,老师您还记得我么?带我毕业设计整天只知道围着那些主动去找您“谈话”的学生转,给他们分配任务,定期让他们去汇报学习情况,又不让我做什么,有什么指示都是托那些同学传话给我,也是,皇上不能跟我这种人直接对话,只是我们的一次邂逅您就告诉我后天要检查我的学习情况。上次检查我承认我没看您给的课件,我当时说什么都是借口,人家一个个带着U盘,我都不知道召集我们开会要干什么,我根本不知道您要检查我们看您课件的情况,我很实在,我告诉你们我什么都没看,我还告诉你们我大学学习不好,我基础差,我说这个我只是想你们是博士,是高手,希望你们能帮助我,因为我在看书的时候有很多不懂的地方,结果你们笑了一下:“确实够差的” 昨天跟老爸打电话,问老爸怎么打算,不出所料,希望我考研,当然这是为我好,父母是最爱我的人嘛~!我说我想回湖南复习,因为我在长沙有个女朋友,不想只顾自己前途把她放一边,结果老爸就脸色不好看了。考研考研,我有那么想考研么?老爸老妈爱面子,希望我考研,虽然我这个人不爱面子,我还是充分考虑爸妈的想法我决定再考一年研。我只想尽一份儿子的责任的同时尽一份男人的责任。老爸的理论就来了:首先一个社会经验不足压得我一句话不敢说,然后说我很年轻,工作还没有着落更谈不上事业,还谈什么恋爱?考上研再说!-----我想我不该告诉你们她是个大专文凭把。老爸看您这个意思,是叫我分手吧,分了算了,我想就是以后在一起了跟着您这样的公公她也好过不了。老妈还是挺直截了当,知道学历后接着就问我对方家里条件好不?我说不好,老妈直接就说不满意了,我靠,人都还没看到,就开始反对了。回想起过去,我也觉得这是很自然的事,打从初中开始,我学习偷懒被老爸骂我变了开始我就真变了,小学的时候跟老爸像个朋友一样,初中开始到现在沟通基本上是空白,10年的空白确实难免有价值观上的区别。我的价值观被你们评价是没有志气,我很奇怪为什么我能容忍你们那种爱面子的人生观,你们为什么就不容忍我,你们是我的长辈,关系颠倒了吧?前几天跟yinwei聊天还觉得你们很尊重我的意见,yinwei还羡慕的不得了,看来我误会了。 在战队的主页看到新一届的CUWL开赛,名单都是新面孔,没有了我,我终于不用再为战队花时间了,希望大家能够打好,近4年的时间我都在战队里面,也要告别了。 老爸又给我打了个电话,让我 去找XXX,我真的很想跟他说我不想麻烦别人,他一帮理论,根本不管我受得了受不了,轮到我发言的时候,老爸就挂了。这丫的,碰到这种事我还没有办法发火。
我自问自己做事对得起天地良心,对得起朋友,对事情永远都是肯负责任,而且为人实在,有什么说什么,从来不找借口,我也不是不求上进,只是我前几年上进的方向不是学习,我也不蠢,这算什么?我不图回报,我从农村考上重点本科爸爸妈妈还不够么?我考研我没有努力么?老师呢?我对说的你们的回应只是嘲笑么?你们是博士啊。这年头,不忽悠人不行啊,还以为我傻。 暂时说这么多,小发一下牢骚。另外我不会自杀的,以后开始要忽悠人。Fuck the world,哈哈 March 17 一道C++编程题 今天在byr Blog逛了逛,发现这样一道编程题:
#include<ostream>
using namespace std; int main() 要求是输出"白日依山尽 但绝对不能改动main()函数 -------------------- 我当然是不会,楼下有个id为slime的哥么倒是给了很多答案 --------------------
---------------- 在VC 6.0下测试了一下,2、3、4、5、7都可以,1、6不能达到题目要求 ---------------- 答案1 回答者想用类来解答,出了问题,这个问题什么原因导致我也不清楚。 答案2 回答者用条件编译的方法解决了问题 答案3、5、7 回答者用宏定义(这样用我还没见过)解决了问题 答案4 回答者偷换main函数了 答案6 。。。看不懂 March 16 咆哮其实咆哮就是K歌,之所以称之为咆哮,一是因为自己去K歌就是去发泄的,二是因为自己歌之不歌。同行两人,皆因为最近的烦心事想去“咆哮”一下,虽然事各有千秋,但是都有一个共同点-----烦心。
兄弟这次上路还随身带了个mp3录音,或许是想留点证据,呵呵。咆哮持续了5分钟,气势可谓惊天地泣鬼神。
一进去我抓着话筒就开始了,结果跑调基本很严重,或许是很久没咆的原因,环视了一下没有女生,而且同行的哥么见状就自觉下去端自助餐了,我姑且就这样一直跑下去了。点的歌曲皆为以前认为很高,高得没法唱的歌曲,这次却一口气全点了出来----没法唱,哥可以咆啊!什么动力火车的《当》《背叛情歌》,信乐团的《离歌》《死了都要爱》等。点歌的格式就是以这些歌为主线在这些歌间隙中唱一两首“养”嗓子的歌,以维持持久战斗能力。
5个小时的发泄果然有效果,出来说话都高了八度,喉咙就像往上移了几厘米一样,两人想了想,决定今晚不吃饭,省下钱来买金嗓子-____ -!!!
虽然烦心事还在,但是人已经不烦心了 March 15 Show myself!!!!!!!这几天我登记了调剂的吕玉琴老师给我来了两次面试,所谓面试,我想就是把真实的我展现出来吧。其实说起来好像很容易嘛,介绍一下自己嘛~可是没想到这么难,几个问题就被问得晕头转向,还似乎一直有个声音在催促:“块回答啊,快回答!”
我回头想了一下,我觉得面试的时候要把握的两个方面一个是自己的优势,还有一个就是对方的需求,将自己的优势对上对方的需求,效果应该就比较好。但是面试的时候总感觉头脑一片空白,这个几次都是这样,而且临场反应稍微差点,也不会转移话题,这些我想我还需要积累经验。嗯,我会做得很好的。
March 13 工作去?昨天跟一位朋友聊天,对方已经工作两年了。现在自己考研只能找调剂,周围又充斥着考研和找工作的两条路选择的争议,我感到非常迷茫,不知道是读下去还是应该找工作。于是找这个朋友询问一下,请他给我提点建议。
我把自己的状况给他说明白了。大学四年学习不咋样,要我去搞技术看起来是不行的,虽然非常有自信能好好学习,但这个好像不好用。搞市场也好像不行,就现在来说沟通能力一般,虽然觉得自己能有前途,但是平时没有好好练习过怎么发展人际关系,也是困难重重。简历嘛,学习不突出,社会实践也没有,然后项目经验也没有,这个样子看起来基本没啥找好工作的希望。
朋友给我的建议是读研究生,先弄个文凭,出来好找工作,薪水也高些,以后的两年要好好学。
自己想想这个选择来说对我来说算是最好的选择吧。找工作自己准备不咋样,六级没过,计算机语言没怎么学,平时也没注意实习,多练练自己的沟通能力,虽然对自己还是有信心,但是这样确实没有实在的本事,需要对自己充充电,虽然自己没有办法读一个好专业的研究生,但是这是最坏情况下我最好的选择了。等自己稳定下来,然后努力奋斗,以后再也不能耽误自己了。
March 11 Visual C++ Error MessagesThis page contains a listing of "difficult to diagnose" error messages and possible fixes. I haven't taught a programming class that uses Visual C++ in several years so this list is probably out of date by now. It was valid for Microsoft Visual C++ version 6.0 service pack 3.
C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information This error results from leaving off the parentheses immediately following the function name in a function header. To correct the error simply add () to the end of the function name.
C1010: unexpected end of file while looking for precompiled header directive If your project is an MFC AppWizard created project then this error results from not #including StdAfx.h as the first #include statement (before any other #includes, data declarations, or executable program code).
C1083: Cannot open precompiled header file: 'Debug/<Project-Name>.pch': No such file or directory This error results from a missing file - the compiled version of StdAfx.cpp. Visual C++ does a poor job of keeping track of this file and frequently "forgets" how to build it. This problem often occurs after restoring a saved workspace from diskette without the Debug directory. To fix the error select StdAfx.cpp from the workspace file list them choose Compile from the Build menu. If that doesn't work the go to Project -> Settings, select the C/C++ tab, and click the radio button labeled Create Precompiled Headers.
C2001: newline in constant This error is usually caused by a string or character constant that is missing its closing ' or " symbol.
C2065: '<data-member name>' : undeclared identifier If this error occurs in one of your member functions then it is generally the result of forgetting the class scope operator in front of the function name in your .cpp file.
C2143: syntax error : missing ';' before 'PCH creation point' Check each of the #include files to ensure that the closing brace of each class declaration is followed by a semicolon.
If this error is followed by two C2501 errors then the problem is an undeclared class name within a pointer declaration. For example, the declaration: CClass *pObject; will generate the above error message followed by a C2501 error message for 'CClass' and another C2501 message for 'pObject'. The problem is that the compiler isn't recognizing CClass as a valid class/type name. To correct the problem add a #include of the file containing the declaration of CClass (e.g., #include CClass.h)
C2447: missing function header (old-style formal list?) This error usually results from a missing { or use of a ; instead of a { following the parameter list of a function header.
C2511: '<function-name>' : overloaded member function not found in '<class-name>' This error results from a mismatch in the parameter list of a member function declaration (.h file) and definition (.ccp file). Check the forward declaration of the function in the .h file and its definition in the .cpp file and ensure that the number of parameters and the type of each parameter match exactly.
C2512: '<constructor-function-name>' : no appropriate default constructor available This error usually occurs when you implement the constructor function of a derived class and forget to include parameter passing to the base class constructor function. For example assume that CDerived is derived from CBase and that the CBase constructor function requires one parameter (e.g., int A). If you define the CDerived constructor function as: CDerived::CDerived(int A, int B) { ... } the compiler will issue the above error message on the line containing the function header of CDerived::CDerived() because you haven't provided instructions for routing the parameter A to CBase::CBase(). Because you didn't provide instructions the compiler assumes that CBase::CBase() requires no arguments and it complains because no version of CBase::CBase() has been defined that accepts zero arguments. If you intended to provide a version of CBase::CBase() that requires no arguments then the error message indicates that you forgot to declare that function in your base class declaration (e.g., in CBase.h). If CBase::CBase() does require one or more arguments then you must correct the problem by including explicit instructions for passing parameters from the derived class constructor function to the base class constructor function. The correction for the example above is: CDerived::CDerived(int A, int B) : CBase(A) { ... }
C2556: '<function-name>' : overloaded functions only differ by return type These errors usually result from a mismatch of function type between a .h and .cpp file. Check the forward declaration of the function in the .h file and its definition in the .cpp file and make the function return type identical in both files.
C2601: '<function-name>' : local function definitions are illegal This error results from defining one function inside the body of another function. It usually means that you omitted one or more } symbols in the function just before the function named in the error message.
C2653: '<Class-Name>' : is not a class or namespace name This error usually results from not having #include "StdAfx.h" as the first #include statement in your class.cpp file. It can also occur if your class definition is in a .h file and you forget to #include that .h file in another file that refers to the class name.
C2661: '<Class-Name>::<Function-Name>' : no overloaded function takes n parameters This error indicates a mismatch between the parameters used in a function call (e.g., from main.cpp) and the declaration of the function. The function call is passing n parameters and there is no function declaration that uses that number of parameters.
LNK1104: Cannot open file nafxcwd.lib This error sometimes occurs when a project uses a class from the MFC but the project settings don't explicitly tell the link editor to look in the MFC libraries. Go to Project --> Settings (Build --> Settings in Visual C++ 4.0). On the General tab check the box that says "Use MFC in a Shared DLL".
LNK1168: cannot open Debug\<Project-Name>.exe for writing This error occurs when the link editor attempts to write to a .exe file that is currently in use. The .exe file of an executing program is write protected until the program is terminated. Look at the status bar at the bottom of your screen and find the icon representing your executable application. Open the application and exit from it. Then select Build.
LNK2001: unresolved external symbol __endthreadex These errors result from using an MFC object or function without telling the link editor to search the MFC libraries. Go to Project --> Settings (Build --> Settings in Visual C++ 4.0). On the General tab check the box that says "Use MFC in a Shared DLL".
LNK2001: unresolved external symbol _main Your project doesn't contain a function called main(). The error usually results from forgeting to add main.cpp to the project workspace.
<File>.obj : error LNK2001: unresolved external symbol "public: void __thiscall <Class1>::<Function1>(<Type>)" This a generic form of a LNK2001 error where <File>.obj can be any object file in your project and <Class1>::<Function1>(<Type>) can be any function in any class. Substitute the specific <File>, <Class>, <Function>, and <Type> in your message into the instructions below to diagnose and correct the problem. An LNK2001 error means that the link editor is looking for a compiled function and can't find it. The call to the "missing function" is somewhere in <File>.cpp. Unfortunately, double-clicking on the error message won't take you to the point in <File.cpp> where the function is called but you can search for it with Find or Find In Files. The function the link editor can't find is a member of <Class>, its name is <Function1>, and its return type is <Type>. There are two common reasons for a LNK2001 error: The call in <File>.cpp doesn't match the function prototype in <Class>.h and/or the implementation in <Class>.cpp. The mismatch may be in the function name, return type, or number and/or type of parameters. Correction strategies include: -------------------------------------------------------------------------------- LNK2005: <some-long-string-of-mostly-garbage> already defined in <name>.lib(<name>.obj) This error usually results from including a source code file multiple times. If you recognize any of the names in the message then it probably results from multiple inclusion of one of your own header files. Check to be sure that you've used #ifndef/#define/#endif properly your header files. If you don't recognize the name then it's probably multiple inclusion of a system file (e.g., afxwin.h). Make sure that you haven't explicitly included something in main.cpp that is already included in one of your own header files. Also check that you haven't #included a .cpp file where you should have #included a .h file. |
|||||||||||||||||||||||||||||||||||||||||
|
|