Question about mixing objects beetween MSVC++ and GCC

Pavel Tsekov ptsekov@gmx.net
Thu Feb 20 11:49:00 GMT 2003


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/



More information about the Cygwin mailing list