X-Spam-Check-By: sourceware.org Message-ID: <000701c69e47$6a6c8000$ab01a8c0@loiscxf> From: "cxf" To: Subject: How to use the generated lib in C++ Program Date: Mon, 3 Jul 2006 10:21:39 +0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="gb2312"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I Follow the FAQ "How can an MSVC program call a MinGW DLL, and vice versa?" and generate the library testdll.lib.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. -- 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/