Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 13 Jul 2004 16:18:13 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Lester Ingber cc: cygwin AT cygwin DOT com Subject: Re: need -mrtd to create Excel DLL? In-Reply-To: <20040713193336.GA2648@ingber.com> Message-ID: References: <20040713193336 DOT GA2648 AT ingber DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Tue, 13 Jul 2004, Lester Ingber wrote: > Siegfried: > > Hi. I did not use any __declspec keywords, etc. -- just vanilla C > code which runs as well under gcc or g++ under Cygwin, FreeBSD, or > SPARC/Solaris, etc. Creating DLLs is another matter -- I've just tested > this using Cygwin/gcc under XP Pro. As I said, I cannot get this to > work under Cygwin/g++. > [snip] Lester, It is unlikely you'll be able to get g++ to link with Microsoft's C++ object files -- they use different name mangling schemes. The common way of linking different flavors of C++ is to wrap C++ functions with 'extern "C"' declarations. This will start to get ugly once you decide to interface instance functions, etc. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/