public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Trying to use a static lib compiled with gcc in a VS application
@ 2008-03-29 20:08 Tammy Lavi
  2008-03-29 22:58 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Tammy Lavi @ 2008-03-29 20:08 UTC (permalink / raw)
  To: gcc-help

Hi,

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.

I tried to set the -fvisibility-ms-compat flag, but it doesn't seem to help :-(

Am I doing something wrong?

Do I miss anything?

Can you please advise?

Thanks a lot!!!

Tammy Lavi

tlavi@il.ibm.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Trying to use a static lib compiled with gcc in a VS application
  2008-03-29 20:08 Trying to use a static lib compiled with gcc in a VS application Tammy Lavi
@ 2008-03-29 22:58 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2008-03-29 22:58 UTC (permalink / raw)
  To: Tammy Lavi; +Cc: gcc-help

"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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-29 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-29 20:08 Trying to use a static lib compiled with gcc in a VS application Tammy Lavi
2008-03-29 22:58 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).