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/