Quote:
Originally posted by icoming
But how to make a constructor virtual?
|
IIRC (haven't used C++ myself for a while) by putting "virtual" before the decaration (and/or maybe the definition) of the contructor.
Quote:
And why g++ says "undefined reference to `vtable for CLocalFileList' "?
|
The program doesn't know the address of a virtual function until the program is actually running. When the program in run, it looks up the address from a table in memory, the "vtable".