[YBA] g++ newbie: No warn on missing method implementation?
Oleg Goldshmidt
pub at goldshmidt.org
Tue Jul 13 12:41:09 IDT 2010
On Tue, Jul 13, 2010 at 11:31 AM, Jonathan Ben Avraham <yba at tkos.co.il> wrote:
> Dear linux-il list,
> g++ seems to be quite happy to compile and link a program that has a class
> that includes method declarations that are not implemented, as log as those
> methods are not called explicitly in the code. VS2008 seems to be able to
> discover this, either at compile or link time. Any way to do this in g++?
Not that I know of, but I'd like to point out that declaring
unimplemented methods is normal, standard, and useful, so why would a
compiler flag it?
--
Oleg Goldshmidt | pub at goldshmidt.org
More information about the Linux-il
mailing list