need -mrtd to create Excel DLL?
Igor Pechtchanski
pechtcha@cs.nyu.edu
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]
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@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.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/
More information about the Cygwin
mailing list