From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29775 invoked by alias); 22 Feb 2008 21:23:28 -0000 Received: (qmail 29763 invoked by uid 22791); 22 Feb 2008 21:23:27 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Feb 2008 21:23:04 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1JSfMD-0000jU-JE; Fri, 22 Feb 2008 21:23:01 +0000 Message-ID: <47BF3DAF.CD8975FE@dessent.net> Date: Sat, 23 Feb 2008 01:05:00 -0000 From: Brian Dessent Reply-To: gcc-help@gcc.gnu.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: stepleton@gmail.com CC: gcc-help@gcc.gnu.org Subject: Re: Force generation of an uncalled method? References: <47BF336F.C22A2B9E@dessent.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00276.txt.bz2 stepleton@gmail.com wrote: > Thanks, Brian, this is it! For now I am getting by placing something like > "if(false) debugMethod();" into the constructor. If there is a convention > for this sort of thing, I'd be happy to know about it. You should be able to explicitly instantiate it as e.g. "template class Foo;" which if I understand correctly would tell g++ to compile and emit bodies for all non-inline methods of Foo at that point. Brian