delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/02/16:57:55

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
Message-ID: <20020402215605.63941.qmail@web14506.mail.yahoo.com>
Date: Wed, 3 Apr 2002 07:56:05 +1000 (EST)
From: =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Subject: REt: Creating DLLs using c++/g++
To: Cygwin <cygwin AT cygwin DOT com>
MIME-Version: 1.0

> From: Suhanthan Vanniyasingam <Suhanthan at eRunway dot com>

> I have created DLLs by using the following command
>	"gcc -Wl,--out-implib,libmydll.import.a -shared -o mydll.dll
> mydll.o"
> and used with a VC++ application.

> But I have tried the same command with c++ and g++. It's creating the
DLL.
> But the functionality is not accessible by VC++ application.

Its not a dll problem, its a difference in C++ ABI. You can't generally mix
object code from different C++ compilers. In fact different versions of
same compiler (say G++-2.x and G++-3.x) produce incompatable C++ code.
Different compilers use different name-mangling schemes to protect users
from problems that arise when mixing ABI's. 

There are attempts to standardize C++ ABI across compilers, but that has
not happened yet.  

Danny

http://www.sold.com.au - SOLD.com.au Auctions
- 1,000s of Bargains!

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