Link error...Pls! Help

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 11
Reputation: mypopope is an unknown quantity at this point 
Solved Threads: 0
mypopope mypopope is offline Offline
Newbie Poster

Link error...Pls! Help

 
0
  #1
Oct 16th, 2008
Hello

I'm new to computer programming , and I'm using Dev C++ 4.9.9.2. I'm also reading C++ How To Program Pearson International Edition from DEITEL as my source of knowledge. I don't if I'm reading the right book and using the right c++ software or compiler. Hop you can give me an advice regarding this.

I encountered a link error while compiling my programs or source file with file names GradeBook.h,GradeBook.cpp and fig3_10 I got this programs from the sample of my book C++ How To Program. But when I compiled it an error will occurred. I assume that the source file or the programs are coorrect because it come from the book of deitel.
GradeBook.cpp and fig3_10 has include Gradebook.h(#include "GradeBook.h").

Please help me these problems, because I can't go on with my self study without solving these problems, because most of the remaining illustration of the book is likely the same with this..

Thank you very much
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 390
Reputation: skatamatic will become famous soon enough skatamatic will become famous soon enough 
Solved Threads: 39
skatamatic skatamatic is offline Offline
Posting Whiz

Re: Link error...Pls! Help

 
0
  #2
Oct 16th, 2008
Most generaly, link errors are caused by a mismatch in a function/method declaration and the actual implementation. Hence being unable to link the two (and possibly more in the case of overloading). For example, this would result in a link error:

  1. void Foo(int, int);
  2. int main()
  3. {
  4. Foo(10, 10);
  5. return 0;
  6. }
  7. int Foo(void)
  8. {
  9. return 0;
  10. }
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 305
Reputation: stilllearning has a spectacular aura about stilllearning has a spectacular aura about 
Solved Threads: 43
stilllearning stilllearning is offline Offline
Posting Whiz

Re: Link error...Pls! Help

 
1
  #3
Oct 16th, 2008
You need to post the link errors you are getting from the compiler so that we can help you.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC