I don't know if this is a Qt issue, or that I'm not chaining my virtual types correctly. I am getting the same thing on a number of virtual functions. Below is an example.

I have
Qt Code:
  1. class entity_ao {
  2. public:
  3.  
  4. ...
  5.  
  6. virtual void setToZero();
  7.  
  8. ...
  9. }
  10.  
  11. class scalar_ao : public entity_ao {
  12. ...
  13. }
  14.  
  15. class real_ao : public scalar_ao {
  16. public:
  17.  
  18. ...
  19.  
  20. void setToZero() { ... }
  21.  
  22. ...
  23. }
To copy to clipboard, switch view to plain text mode 

This compiles just fine, but the .NET 2003 linker says: LNK2001: unresolved external symbol public: virtual void __thiscall entity_ao::setToZero(void)

I have tried adding virtual void setToZero(); to class scalar_ao, but that changes nothing. I have also tried moving the defn forreal_ao::setToZero from the .h to a .cpp file -- again that changes nothing.