This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Trying to use a static lib compiled with gcc in a VS application
- From: Ian Lance Taylor <iant at google dot com>
- To: "Tammy Lavi" <tammy dot lavi at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 29 Mar 2008 15:58:27 -0700
- Subject: Re: Trying to use a static lib compiled with gcc in a VS application
- References: <b0d0afbb0803291307q3ffe96dfw5708a4d70fb9c0a7@mail.gmail.com>
"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