Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: g++ -shared and libstdc++.a specs bug? Date: Sat, 13 Apr 2002 18:24:31 +1000 MIME-Version: 1.0 Message-ID: Content-Type: text/plain; charset="us-ascii" X-MS-Has-Attach: X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message From: "Robert Collins" To: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g3D8P4308878 Using g++ -shared to build a C++ dll, it failed to link with a number of missing symbols. Adding -lstdc++ to the link line fixed this. The interesting point is that the static build worked fine. I presume the correct solution is either a dllised libstdc++, or a specs file tweak. I'm not a g++ specs afficiondo, so this is just a heads up. If I get time I may look into this more, but no promises. Rob -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/