www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/13/16:18:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Lester Ingber <ingber AT ingber DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: need -mrtd to create Excel DLL?
In-Reply-To: <20040713193336.GA2648@ingber.com>
Message-ID: <Pine.GSO.4.58.0407131614390.29800@slinky.cs.nyu.edu>
References: <20040713193336 DOT GA2648 AT ingber DOT com>
MIME-Version: 1.0
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/

- Raw text -


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