This is the mail archive of the gcc-help@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: Trying to use a static lib compiled with gcc in a VS application


"Tammy Lavi" <tammy.lavi@gmail.com> writes:

> I am working with eclipse CDT, and compiled a static C++ library using
> gcc compiler.
>
> I am now trying to use this library with a MFC GUI application on VS6,
> but I get an LNK2001 error message from the VS Linker.

You can't mix and match C++ code compiled by gcc with code compiled by
MSVC.  They use different name mangling and a different ABI.

Ian


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