Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com List-Unsubscribe: List-Archive: List-Help: , Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199907310526.AAA02443@mercury.xraylith.wisc.edu> To: Jonathan Wilson cc: "cygwin AT sourceware DOT cygnus DOT 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 DOT 5EFB5163 AT xoommail DOT com> Date: Sat, 31 Jul 1999 00:26:53 -0500 From: Mumit Khan Jonathan Wilson 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 AT sourceware DOT cygnus DOT com