Message from discussion
#14741: unresolved externals for wxWindowList with VS11 (2012) and wxUSE_STD_CONTAINERS
Received: by 10.180.85.98 with SMTP id g2mr1541675wiz.0.1351438967892;
Sun, 28 Oct 2012 08:42:47 -0700 (PDT)
X-BeenThere: wx-dev@googlegroups.com
Received: by 10.180.20.136 with SMTP id n8ls3166956wie.3.gmail; Sun, 28 Oct
2012 08:42:42 -0700 (PDT)
Received: by 10.180.94.98 with SMTP id db2mr1534051wib.2.1351438962400;
Sun, 28 Oct 2012 08:42:42 -0700 (PDT)
Received: by 10.180.94.98 with SMTP id db2mr1534050wib.2.1351438962390;
Sun, 28 Oct 2012 08:42:42 -0700 (PDT)
Return-Path: <nore...@wxsite.net>
Received: from riobu.com (riobu.com. [85.234.147.122])
by gmr-mx.google.com with ESMTP id cv10si310474wib.0.2012.10.28.08.42.42;
Sun, 28 Oct 2012 08:42:42 -0700 (PDT)
Received-SPF: neutral (google.com: 85.234.147.122 is neither permitted nor denied by best guess record for domain of nore...@wxsite.net) client-ip=85.234.147.122;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 85.234.147.122 is neither permitted nor denied by best guess record for domain of nore...@wxsite.net) smtp.mail=nore...@wxsite.net
Received: from riobu.com (localhost [127.0.0.1])
by riobu.com (Postfix) with ESMTP id 3BEECABF86F5
for <wx-dev@googlegroups.com>; Sun, 28 Oct 2012 08:42:42 -0700 (PDT)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: "wxTrac" <nore...@wxsite.net>
X-Trac-Version: 0.11.5
Precedence: bulk
Cc: wx-dev@googlegroups.com
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.5, by Edgewall Software
X-Trac-Project: wxWidgets
Date: Sun, 28 Oct 2012 15:42:42 -0000
Reply-To: wx-dev@googlegroups.com
X-URL: http://trac.wxwidgets.org/
Subject: Re: #14741: unresolved externals for wxWindowList with VS11 (2012)
and wxUSE_STD_CONTAINERS
X-Trac-Ticket-URL: http://trac.wxwidgets.org/ticket/14741#comment:2
Message-ID: <060.c496eb689860934241bda87139eae79e@wxsite.net>
References: <051.ae155fc4fc9eb586f841688d94886337@wxsite.net>
X-Trac-Ticket-ID: 14741
In-Reply-To: <051.ae155fc4fc9eb586f841688d94886337@wxsite.net>
Ticket URL: <http://trac.wxwidgets.org/ticket/14741#comment:2>
#14741: unresolved externals for wxWindowList with VS11 (2012) and
wxUSE_STD_CONTAINERS
---------------------------+------------------------------------------------
Reporter: hajokirchhoff | Owner: =
Type: defect | Status: new
Priority: normal | Milestone: 3.0
Component: wxMSW | Version: =
Keywords: vs11 msvs dll | Blockedby: =
Patch: 1 | Blocking: =
---------------------------+------------------------------------------------
Changes (by hajokirchhoff):
* patch: 0 =3D> 1
Comment:
Relatively straightforward though a bit more complicated than I expected:
The wxList classes are now header only and are no longer exported, but the
_WX_LIST_HELPER classes are still being exported. They do not derive from
a template class and don't have the problem described here.
Regarding "broken backwards compatibility...": my guess is that this was
never supposed to work anyway and only worked because of the previous way
the MS compiler instantiated templates. We probably disabled the warning
"base class needs to have dll export to be able to use members...", which
showed up in so many annoying places.
I've attached the patch. It works fine here now.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/14741#comment:2>