CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 36

Threaded View

  1. #10
    Join Date
    Apr 1999
    Posts
    27,449

    Re: generic inheritance

    Quote Originally Posted by oteel View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured