need -mrtd to create Excel DLL?

Igor Pechtchanski
Tue Jul 13 20:18:00 GMT 2004

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]


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.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Problem reports:

More information about the Cygwin mailing list