From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24664 invoked by alias); 5 May 2004 16:58:02 -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 24606 invoked from network); 5 May 2004 16:57:59 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by sources.redhat.com with SMTP; 5 May 2004 16:57:59 -0000 Received: (qmail 1819 invoked by uid 65534); 5 May 2004 16:57:58 -0000 Received: from pD9EB8416.dip0.t-ipconnect.de (EHLO pd9eb8416.dip0.t-ipconnect.de) (217.235.132.22) by mail.gmx.net (mp010) with SMTP; 05 May 2004 18:57:58 +0200 X-Authenticated: #348333 From: =?iso-8859-15?q?J=F6rg_Schaible?= Organization: N/A To: cygwin@cygwin.com Subject: Re: Trying to link an MSVC DLL with a Cygwin Application Date: Wed, 05 May 2004 16:58:00 -0000 User-Agent: KMail/1.6.1 References: <8ED2FA87C8ACC04192709688DDFD5F5F09B9BF@calttsv025.cal.riotinto.org> <4098984F.8010505@luukku.com> In-Reply-To: <4098984F.8010505@luukku.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <200405051857.47338.joerg.schaible@gmx.de> X-SW-Source: 2004-05/txt/msg00160.txt.bz2 Please keep replies on the list! On Wednesday 05 May 2004 09:31, you wrote: Jt> J=F6rg Schaible wrote: Jt> Jt> > john george wrote: Jt> > Jt> > Jt> >>Can i resolve the name mangling issue by adding the Jt> >>extern "C" declaration for every function that I'm Jt> >>exporting in the MSVC created DLL. Jt> >>I tried this but doesn't seem to work.Is there any Jt> >>other way to do this. Jt> > Jt> > Jt> > Be aware, that there is more than just a compatible call. You have to Jt> > recognize, that you have two different RT-libs and therefore also two Jt> > memory managers. Said that, you cannot allocate memory from the first one Jt> > and set it free on the second. While this is quite obvious with malloc and Jt> > friends, you have also to take care of strdup or fopen or ... Jt> Jt> Aren't cygwin given pointers and msvcrt given pointers interchangeable.= .? Jt> Jt> Well I'm not going to try it but it could be handy to know... This has nothing to do with Cygwin itself, but is true for any combination = of=20 different RT-Libs (Cygwin, MS, Borland, ...) Regards, J=F6rg -- 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/