This is the mail archive of the cygwin@cygwin.com 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: Question about mixing objects beetween MSVC++ and GCC


No, you cannot mix C++ object. GCC and MSVC use different name mangling 
schemes.

However, you can try to wrap the C++ functionality in C functions and
link against them. Eventually this will work.

On Thu, 20 Feb 2003, Eric Jacquemard wrote:

> In the FAQ I read that I can mix objects compiled with
> msvc++ and gcc. I would like to have a precision : 
> Can I mix mscv++ object files (C++) with C object
> files generated by gcc ? 
> If OK : how can I do that ? Do I need specific options
> (for compiling and linking) ? In my case : I would
> like to call my « C_GCC_dll » from a C++_msvc++
> application.
> Thanks 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]