delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
X-Authentication-Warning: | sequoia.cs.berkeley.edu: maratb set sender to maratb AT CS DOT Berkeley DOT EDU using -f |
To: | cygwin AT sourceware DOT cygnus DOT com |
Cc: | abegel AT cs DOT Berkeley DOT EDU |
Subject: | problems linking g++-generated dlls with VC++ applications |
From: | Marat Boshernitsan <maratb AT cs DOT Berkeley DOT EDU> |
Date: | 01 May 2000 19:58:30 -0700 |
Message-ID: | <tfvd7n5mze1.fsf@sequoia.cs.berkeley.edu> |
Lines: | 17 |
User-Agent: | Gnus/5.0803 (Gnus v5.8.3) XEmacs/21.1 (Biscayne) |
MIME-Version: | 1.0 |
I have a C++ application in Visual C++ that I need to link with a C++ dll that is compiled with g++ (is this even possible?). The application only uses extern "C" functions of the dll, so the name mangling differences are not an issue. What is an issue, however, is that the dll has some global objects whose initialization does not happen when the dll is loaded (I built a small testcase to verify that) by the VC++ application, whereas g++/cygwin applications that link against the this dll are fine. Is this a bug, or a known misfeature? Any suggestions or workarounds? Do I need to do anything special in DllMain? Can I make some explicit calls to ensure proper initialization? Thanks in advance, Marat. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |