Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
Sender: cygwin-owner@sourceware.cygnus.com
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>,
	<http://sourceware.cygnus.com/ml/#faqs>
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-Id: <199907310526.AAA02443@mercury.xraylith.wisc.edu>
To: Jonathan Wilson <wilsonj@xoommail.com>
cc: "cygwin@sourceware.cygnus.com" <cygwin@sourceware.cygnus.com>
Subject: Re: can you export a c++ class from a cygwin32/mingw32 dll? 
In-Reply-To: Your message of "Sat, 31 Jul 1999 10:23:40 +0800."
             <37A25E2C.5EFB5163@xoommail.com> 
Date: Sat, 31 Jul 1999 00:26:53 -0500
From: Mumit Khan <khan@xraylith.wisc.EDU>

Jonathan Wilson <wilsonj@xoommail.com> writes:
> can you export a c++ class from a cygwin32/mingw32 dll?
> how do you do it?

What have you done/tried?

> i have an existing dll that exports a c++ class... can i use that from
> cygwin32? the dll was writem in ms vc++ and i also have a matching
> borland c++ dll. i do have the source but i am unsure as to how it would
> compile in cygwin32...

If you're using my compiler distribution(s), which you should if you're
using C++, then the following works just fine:
  
  class __declspec(dllexport) 
  foo 
  {
    // ....
  };

The next release, gcc-2.95, should be better in this respect. 

http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ for more
info.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

