delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/20/05:06:00

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
Date: Thu, 20 Feb 2003 11:07:14 +0100 (CET)
From: Pavel Tsekov <ptsekov AT gmx DOT net>
X-X-Sender: ptsekov AT moria DOT atlanticsky DOT com
To: =?iso-8859-1?q?Eric=20Jacquemard?= <e_jac2001 AT yahoo DOT fr>
cc: cygwin AT cygwin DOT com
Subject: Re: Question about mixing objects beetween MSVC++ and GCC
In-Reply-To: <20030220094259.8998.qmail@web20704.mail.yahoo.com>
Message-ID: <Pine.LNX.4.44.0302201104340.15897-100000@moria.atlanticsky.com>
MIME-Version: 1.0

No, you cannot mix C++ object. GCC and MSVC use different name mangling 
schemes.

However, you can try to wrap the C++ functionality in C functions and
link against them. Eventually this will work.

On Thu, 20 Feb 2003, Eric Jacquemard wrote:

> In the FAQ I read that I can mix objects compiled with
> msvc++ and gcc. I would like to have a precision : 
> Can I mix mscv++ object files (C++) with C object
> files generated by gcc ? 
> If OK : how can I do that ? Do I need specific options
> (for compiling and linking) ? In my case : I would
> like to call my « C_GCC_dll » from a C++_msvc++
> application.
> Thanks 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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