delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/11/14:34:12

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-ID: <4231F2A8.9030209@buddydog.org>
Date: Fri, 11 Mar 2005 14:34:00 -0500
From: Jonathan Arnold <jdarnold AT buddydog DOT 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 AT cygwin DOT com
Subject: Re: gcc/ ld/ Mixing C++ objects from gcc and msvc : possible link ?
References: <20050309173223 DOT 505222101B7 AT warserver DOT warande DOT net> <20050309173442 DOT GB16830 AT gully DOT bosbc DOT com> <422F4DBA DOT 7020501 AT buddydog DOT org> <20050309200112 DOT GA17199 AT gully DOT bosbc DOT com> <422F63F7 DOT 2080100 AT buddydog DOT org> <78a9ab5d05031107377b3148e4 AT mail DOT gmail DOT com>
In-Reply-To: <78a9ab5d05031107377b3148e4@mail.gmail.com>
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 AT buddydog DOT 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/

- Raw text -


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