This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Problem with Usage of GNU GCC compiler with VC++


On Fri, Mar 14, 2003 at 11:53:37AM +0530, Pradeep Kumar wrote:
> 
> I am using GNU GCC Compiler(gcc-2.95.2-msvcrt).  And I am facing following
> problems, pl. send any one find the solution(s).
> 
> 
> 2. Is it possible to link VC++ (static libraries or DLLs) with GCC (DLLs)

You can't mix object files of any kind that were compiled by two
different C++ compilers (including different versions of G++) unless
those compilers generate code that conforms to the same C++ ABI.
G++ made no attempt to conform to a common C++ ABI until the GCC 3.0
release; as far as I know, there was no C++ ABI defined before that
time.  Even with current versions I don't think that G++ code is
compatible with VC++ code (someone please correct me if that's wrong).

For an overview of binary compatibility issues see

  http://gcc.gnu.org/onlinedocs/gcc/Compatibility.html#Compatibility

Janis


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