This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: need -mrtd to create Excel DLL?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]