From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13569 invoked by alias); 4 May 2004 18:10:44 -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 Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13553 invoked from network); 4 May 2004 18:10:43 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 4 May 2004 18:10:43 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BL4NO-0005o0-00 for ; Tue, 04 May 2004 20:10:42 +0200 Received: from pd9eb81ad.dip0.t-ipconnect.de ([217.235.129.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 May 2004 20:10:42 +0200 Received: from joerg.schaible by pd9eb81ad.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 May 2004 20:10:42 +0200 Mail-Followup-To: cygwin@cygwin.com To: cygwin@cygwin.com From: =?ISO-8859-15?Q?J=F6rg?= Schaible Subject: RE: Trying to link an MSVC DLL with a Cygwin Application Date: Tue, 04 May 2004 18:10:00 -0000 Message-ID: References: <8ED2FA87C8ACC04192709688DDFD5F5F09B9BF@calttsv025.cal.riotinto.org> <20040504055710.27230.qmail@web20604.mail.yahoo.com> Reply-To: joerg.schaible@gmx.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb81ad.dip0.t-ipconnect.de Mail-Copies-To: never User-Agent: KNode/0.7.7 X-SW-Source: 2004-05/txt/msg00112.txt.bz2 john george wrote: > Can i resolve the name mangling issue by adding the > extern "C" declaration for every function that I'm > exporting in the MSVC created DLL. > I tried this but doesn't seem to work.Is there any > other way to do this. Be aware, that there is more than just a compatible call. You have to recognize, that you have two different RT-libs and therefore also two memory managers. Said that, you cannot allocate memory from the first one and set it free on the second. While this is quite obvious with malloc and friends, you have also to take care of strdup or fopen or ... Regards, Jörg -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/