This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Suggested FAQ entry


Doug Semler <doug@seaspace.com> writes:


[...]

| > | Solution:
| > |   Make sure there exists a definition for all virtual functions
| > |   declared in the header file - especially the first one declared (and not
| > |   defined in the class declaration) - even if the functions are never used.
| > 
| > This belongs to C++ per se, not EGCS. Doesn't it?
| 
| Why?  This is an implementation issue, not a language issue...isn't it?

No. The definition of ISO C++ require you do define all virtual
functions -- unless they are pure -- even if you seem not using them
explicitly: from C++ point of view, they are always used. 

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]