Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <4231F2A8.9030209@buddydog.org>
Date: Fri, 11 Mar 2005 14:34:00 -0500
From: Jonathan Arnold <jdarnold@buddydog.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050202 MultiZilla/1.7.0.2d
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: gcc/ ld/ Mixing C++ objects from gcc and msvc : possible link ?
References: <20050309173223.505222101B7@warserver.warande.net> <20050309173442.GB16830@gully.bosbc.com> <422F4DBA.7020501@buddydog.org> <20050309200112.GA17199@gully.bosbc.com> <422F63F7.2080100@buddydog.org> <78a9ab5d05031107377b3148e4@mail.gmail.com>
In-Reply-To: <78a9ab5d05031107377b3148e4@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

RzR www.rzr.online.fr wrote:
> But for C++ names, I doubt GCC can write a compatible MSVC "library
> stub" ( XYZ.lib that goes along XYZ.dll, not a static one : libXYZ.lib
> )
> 
> Maybe runtime linking with a dll  is possible ... I am investigating on this... 

Right, C++ name mangling breaks any kind of hope of linking together
multi-compiler object files. And it won't work in a DLL either.  The
way to do it is to write a C wrapper for your C++ code and export that
in your DLL.  And then to use that for your interface.

-- 
Jonathan Arnold     (mailto:jdarnold@buddydog.org)
Amazing Developments       http://www.buddydog.org

I feel like a fugitive from the law of averages. -
  William H. Mauldin


--
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/

