Advertisement

Undefined reference...

Started by September 26, 2002 02:42 PM
3 comments, last by BradDaBug 22 years, 4 months ago
I''m getting an error when I try to link my game together: undefined reference to `__cxa_pure_virtual'' What does that mean? I''m using virtual functions throughout my game, but there''s only one .o file giving me trouble.
I like the DARK layout!
Oh, ok! Never mind!

I guess gcc expects all functions to be filled in, even virtual functions that aren't used, only inherited into other functions.

Visual C++ doesn't make you fill in a function unless something specifically calls that function.

You learn something new everyday.

EDIT: Typos

[edited by - BradDaBug on September 26, 2002 8:53:24 PM]
I like the DARK layout!
Advertisement
Make it a pure virtual if nothing can/should call the base virtual function, and then you don''t have to fill it in either.

Pure virtual? How do I do that? is that the =0 after the function definition?
I like the DARK layout!
quote: Original post by BradDaBug
Is that the =0 after the function definition?

Yeah.

This topic is closed to new replies.

Advertisement