Jun 10, 2011 at 4:20pm UTC
Here's a few question you need to answer:
1) What IDE are you using?
2) What type of library are you trying to link?
If you're using Visual C++ Express 2010, and you're trying to link a static library, you can follow my instructions in a previous thread[1] .
References:
[1] http://www.cplusplus.com/forum/general/43787/
Wazzak
Last edited on Jun 10, 2011 at 4:20pm UTC
Jun 10, 2011 at 4:32pm UTC
Thanks for the fast answer.
I'm using Visual C++ Express 2010, the headers are already inside the solution and the project.
Kind Regards,
Matthew
Jun 10, 2011 at 4:48pm UTC
You have function definitions inside a header file, but not in the class itsself, specifically SetAge and GetAge. Either move them into the class, or put them in a cpp file.
Jun 10, 2011 at 6:03pm UTC
Thanks kev, your answer helped me, now I fixed the problem.
Thanks to everyone.