I\'ve been getting these two errors and I cant seem to find a solution that works.
LNK1120: 1 unresolved externals
Error 1 error LNK2019: unresolve
Your implementation of Vector3D
appears to be missing an actual implementation for the copy constructor, hence the unresolved external error. If you don't intend the Vector3D object to be copied, you can't pass it into Matrix::operator*
by value as that would trigger a copy.
That said, I don't think there is any reason to declare and implement the copy constructor for Vector3D
anyway as it only contains POD types and the compiler generated copy constructor will work fine. The same goes for the destructor, there are no resources to manage so let the compiler do its job.