Sign in to follow this  
zappernapper

unknown linker error

Recommended Posts

i'm unfamiliar with this linker error, could someone explain to me what it's saying?
Quote:
undefined reference to `vtable for Map'
Map is a class i have defined, but i have no idea what vtable is, i have no variables or functions named that. Included headers are <windows.h> and <vector> might i be accidentally overriding on of their classes?

Share this post


Link to post
Share on other sites
As a rule of thumb id say you shouldnt name your classes the same as the STL classes, because it can be a cause of confusion when other people read your code. Even if its just cMap instead of Map, thats clearer :]

I can only imagine vtable references the table created to keep track of virtual functions (and making sure the correct functions are called). Iv never had this error before, so im not exactly sure myself =/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this