From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28538 invoked by alias); 13 Feb 2002 10:57:32 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 28412 invoked from network); 13 Feb 2002 10:57:29 -0000 Received: from unknown (HELO q-games.com) (210.170.252.82) by sources.redhat.com with SMTP; 13 Feb 2002 10:57:29 -0000 Received: from Spooler by q-games.com (Mercury/32 v3.21c) ID MO000116; 13 Feb 02 19:57:44 +0900 Received: from spooler by q-games.com (Mercury/32 v3.21c); 13 Feb 02 19:57:38 +0900 Received: from dcuthbert2k (192.168.1.40) by Q-Games (Mercury/32 v3.21c) ID MG000115; 13 Feb 02 19:57:32 +0900 Message-ID: <005d01c1b47d$551d9bc0$2801a8c0@dcuthbert2k> From: "Dylan Cuthbert" To: "Cygwin@Cygwin. Com" Subject: cygwin C++ DLLs and inter-operation with M$OFT Date: Wed, 13 Feb 2002 02:57:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-02/txt/msg00645.txt.bz2 To anyone who can help, We've been having some fun creating DLLs that need to be loaded by some Visual C++ code. The code in the dll itself, ie. the interface is C so there aren't any name mangling problems. However, using v3.0.3 of GCC we get unresolved symbol errors for any libstdc++ we do within the dll. These errors don't occur after using the -V 2.95.3-5 option to gcc to revert to the originally packaged compiler - I had a good poke around but I couldn't work out why the symbols couldn't be resolved. Anyway, after reverting to 2.95.3-5, our test code compiles but when we call any cygwin dll code (from the VS application) we get an exception error in cygwin1.dll - if the code uses any stdlib type stuff (such as memory allocation, printf etc). There is no C++ code in there at all now. I've read through the faqs and documentation and searched the mailing list but I can't find any fixes for this problem (although a couple of other people do mention it). Is there just some obvious initialisation stuff I'm missing somewhere? Regards --------------------------------- Q-Games, Dylan Cuthbert. http://www.q-games.com -- 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/