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 X-Authenticated: #348333 From: =?iso-8859-15?q?J=F6rg_Schaible?= Organization: N/A To: cygwin AT cygwin DOT com Subject: Re: Trying to link an MSVC DLL with a Cygwin Application Date: Wed, 5 May 2004 18:57:47 +0200 User-Agent: KMail/1.6.1 References: <8ED2FA87C8ACC04192709688DDFD5F5F09B9BF AT calttsv025 DOT cal DOT riotinto DOT org> <4098984F DOT 8010505 AT luukku DOT com> In-Reply-To: <4098984F.8010505@luukku.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-15" Message-Id: <200405051857.47338.joerg.schaible@gmx.de> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i45GxId6027120 Please keep replies on the list! On Wednesday 05 May 2004 09:31, you wrote: Jt> Jörg 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 different RT-Libs (Cygwin, MS, Borland, ...) 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/