This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with Usage of GNU GCC compiler with VC++
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Pradeep Kumar <pradeep at packetware dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 14 Mar 2003 09:44:53 -0800
- Subject: Re: Problem with Usage of GNU GCC compiler with VC++
- References: <DEEOIIONJJPHGCHEFDLEAENCCAAA.pradeep@packetware.com>
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