This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to use the generated lib in C++ Program
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 02 Jul 2006 23:27:49 -0400
- Subject: Re: How to use the generated lib in C++ Program
- References: <000701c69e47$6a6c8000$ab01a8c0@loiscxf>
- Reply-to: 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/