From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31153 invoked by alias); 29 Mar 2008 22:58:53 -0000 Received: (qmail 31145 invoked by uid 22791); 29 Mar 2008 22:58:53 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 29 Mar 2008 22:58:34 +0000 Received: from zps76.corp.google.com (zps76.corp.google.com [172.25.146.76]) by smtp-out.google.com with ESMTP id m2TMwUHF005727; Sat, 29 Mar 2008 22:58:30 GMT Received: from smtp.corp.google.com (spacemonkey1.corp.google.com [192.168.120.115]) by zps76.corp.google.com with ESMTP id m2TMwTxQ030223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 29 Mar 2008 15:58:29 -0700 Received: from localhost.localdomain.google.com (adsl-76-249-168-94.dsl.pltn13.sbcglobal.net [76.249.168.94]) (authenticated bits=0) by smtp.corp.google.com (8.13.8/8.13.8) with ESMTP id m2TMwSBI027673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 29 Mar 2008 14:58:29 -0800 To: "Tammy Lavi" Cc: gcc-help@gcc.gnu.org Subject: Re: Trying to use a static lib compiled with gcc in a VS application References: From: Ian Lance Taylor Date: Sat, 29 Mar 2008 22:58:00 -0000 In-Reply-To: (Tammy Lavi's message of "Sat\, 29 Mar 2008 22\:07\:56 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00305.txt.bz2 "Tammy Lavi" 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