(1)
...undefined reference to `typeinfo...
or
...Undefined reference to vtable
Solution: A base class from which classes are derived contains virtual function(s) but they are missing null bodies.
e.g.
virtual float getvalue() ;
should read:
virtual float getvalue() {} ;
(2) error: passing `const Quat
Solution: A "const" type cannot be changed. I was attempting to assign a value to a const type. Created a new variable of same type (but not const).
(3) error: aggregate ‘std::stringstream ss’ has incomplete type and cannot be defined
or
error: X has incomplete type
Usually this refers to STD::X objects.
You've included
for files (ifstream/ofstream) and stringbuffers.
[to be continued]
No comments:
Post a Comment