delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/13/16:55:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199903132155.PAA01288@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: =?ISO-2022-JP?B?GyRCTlMbKEIgGyRCN3JCQE86GyhCIA==?= <kentaro-hayashi AT bea DOT hi-ho DOT ne DOT jp>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Can I create a DLL with g++?
In-reply-to: Your message of "Sun, 14 Mar 1999 01:39:37 +0900."
<36EA94C928A DOT 789BKENTARO-HAYASHI AT bea DOT hi-ho DOT ne DOT jp>
Date: Sat, 13 Mar 1999 15:55:08 -0600
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

=?ISO-2022-JP?B?GyRCTlMbKEIgGyRCN3JCQE86GyhCIA==?=<kentaro-hayashi AT bea DOT hi-ho DOT ne
.jp> writes:
> 
> I just started to use cygwin development tools. 
> I appreciate the developers provided these tools working well.
> But I have a question about DLL, how can I create a DLL
> with g++? How to use the DLL which consists of c++ objects from
> main program.

See http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ and scan
for "How to make DLLs using EGCS". I've just updated my dllhelpers
package to version 0.2.5 that provides examples for C, C++ and F77
DLLs (sorry, not ObjC yet).

Be warned however that the design of MS DLLs makes it extremely hard
to create DLLs from C++ code in some cases (especially when you're 
using exceptions, RTTI and a few other recent C++ features in a DLL). 
For most "normal" code, it should work just fine. Cygwin runtime itself
is a C++ DLL.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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