delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/05/12:59:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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?= <joerg DOT schaible AT gmx DOT de>
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> <c78klv$7kq$1 AT sea DOT gmane DOT org> <4098984F DOT 8010505 AT luukku DOT com>
In-Reply-To: <4098984F.8010505@luukku.com>
MIME-Version: 1.0
Message-Id: <200405051857.47338.joerg.schaible@gmx.de>
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019