delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44A88EB5.3040906@cygwin.com> |
Date: | Sun, 02 Jul 2006 23:27:49 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: How to use the generated lib in C++ Program |
References: | <000701c69e47$6a6c8000$ab01a8c0 AT loiscxf> |
In-Reply-To: | <000701c69e47$6a6c8000$ab01a8c0@loiscxf> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
cxf wrote: > I Follow the FAQ "How can an MSVC program call a MinGW DLL, and vice > versa?" and generate the library testdll.lib. Wrong list. This is an FAQ for the MinGW list, not Cygwin (i.e. <http://mingw.org/mingwfaq.shtml#faq-msvcdll>). > But when I use the > testdll.lib in VC,it seems ok when linking with .c files, but when I > change the file extenstion from ".c" to ".cpp", the VC can not link with > it. Are there any difference between linking in C program and C++ > program. Yes, there are lots of differences. In general, you're not going to have much luck linking C++ code compiled with different compilers. This is not really a Cygwin or MinGW issue but rather a language issue. You may want to do a little research on the differences between C and C++. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |