This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to avoding compiling unreferenced code into .o target file
- From: kipade <kipade at 163 dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 4 Sep 2017 10:44:35 +0800
- Subject: Re: How to avoding compiling unreferenced code into .o target file
- Authentication-results: sourceware.org; auth=none
- References: <65beb0b1-4d63-6ee8-3c6b-de7360c5430c@163.com> <fdc3268b-c081-291d-9f81-510ea14e3d1b@redhat.com>
Im sorry I can't reproduce such small project(I tried, its ok).
But the problem does really exists in my wxWidgets project.
class wxWindow drived from wxWindowBase, which has a
virtual inline function IsShown, it can't be linked into
the client dynamic of wxWidgets.
refer to:
https://github.com/wxWidgets/wxWidgets/blob/master/include/wx/window.h
thanks
在 2017/8/31 下午5:37, Andrew Haley 写道:
On 31/08/17 10:31, kipade wrote:
Any hints will be very very appreciated.
A small example of the problem would help.