943,685 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 520
  • C++ RSS
Oct 16th, 2008
0

Link error...Pls! Help

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mypopope is offline Offline
11 posts
since Aug 2007
Oct 16th, 2008
0

Re: Link error...Pls! Help

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:

C++ Syntax (Toggle Plain Text)
  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. }
Reputation Points: 352
Solved Threads: 108
Master Poster
skatamatic is online now Online
774 posts
since Nov 2007
Oct 16th, 2008
1

Re: Link error...Pls! Help

You need to post the link errors you are getting from the compiler so that we can help you.
Reputation Points: 161
Solved Threads: 43
Posting Whiz
stilllearning is offline Offline
309 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: 'DragDrop registration did not succeed'
Next Thread in C++ Forum Timeline: code compiles but does not produce answer!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC