From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27588 invoked by alias); 4 May 2004 09:07:52 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 27551 invoked from network); 4 May 2004 09:07:51 -0000 Received: from unknown (HELO hotmail.com) (64.4.47.27) by sources.redhat.com with SMTP; 4 May 2004 09:07:51 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 4 May 2004 02:07:50 -0700 Received: from 220.244.224.40 by by9fd.bay9.hotmail.msn.com with HTTP; Tue, 04 May 2004 09:07:49 GMT X-Originating-IP: [220.244.224.40] X-Originating-Email: [arashp@hotmail.com] X-Sender: arashp@hotmail.com From: "Arash Partow" To: cygwin@cygwin.com Bcc: Subject: RE: Trying to link an MSVC DLL with a Cygwin Application Date: Tue, 04 May 2004 09:07:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 04 May 2004 09:07:50.0203 (UTC) FILETIME=[4655F0B0:01C431B7] X-IsSubscribed: yes X-SW-Source: 2004-05/txt/msg00092.txt.bz2 Hi David, That is a false assumption, I have been able to link a REAL win32 dll against a cygwin application however linking a cygwin compiled dll into a MSVC app is where you will come into troubles. This is because neither cygwin's or ming's dlltool create dlls as specified by MS's dll specification. The name mangling is an issue from VC++ POV not the other way round. My experience comes from building a win32 dll in Borland C++ builder then having a simple console based cygwin gcc compiled app exercise the dll's API - which btw was successful. Arash Partow __________________________________________________ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about all things. http://www.partow.net >>From: john george >> >>I'm trying to link a MSVC++ created DLL with a cygwin >>application. >> >>... >> >>This gives me undefined refernce to function name ... >> >>Is there anything that I'm missing? > >The g++ and MSVC++ mangle C++ names differently. This makes >it very difficult (perhaps impossible) to link a MSVC++ created DLL with a >g++ compiled (cygwin or mingw) application. > >-- >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/ . _________________________________________________________________ Personalise your mobile chart ringtones and polyphonics. Go to http://ringtones.com.au/ninemsn/control?page=/ninemsn/main.jsp -- 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/