|
-
June 19th, 2012, 01:59 PM
#10
Re: generic inheritance
 Originally Posted by oteel
1>main.obj : error LNK2001: unresolved external symbol "public: class Array<class Point> __thiscall Array<class Point>::operator*(double)const " (??D?$Array@VPoint@@@@QBE?AV0@N@Z)
1>C:\all my\с++\HA level 6\Solution\Level 6\Release\HP3_4.2b_ex2_with_inheritance.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
First, do you know what that error means?
That is a linker error, not a compiler error. That error is saying that you're calling the operator* function, but it was not implemented. So where is the implementation for operator*?
Regards,
Paul McKenzie
Last edited by Paul McKenzie; June 19th, 2012 at 02:03 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|