From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17778 invoked by alias); 4 May 2004 05:57:12 -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 17770 invoked from network); 4 May 2004 05:57:11 -0000 Received: from unknown (HELO web20604.mail.yahoo.com) (216.136.226.162) by sources.redhat.com with SMTP; 4 May 2004 05:57:11 -0000 Message-ID: <20040504055710.27230.qmail@web20604.mail.yahoo.com> Received: from [203.124.166.130] by web20604.mail.yahoo.com via HTTP; Mon, 03 May 2004 22:57:10 PDT Date: Tue, 04 May 2004 05:57:00 -0000 From: john george Subject: RE: Trying to link an MSVC DLL with a Cygwin Application To: "Billinghurst, David \(CALCRTS\)" , cygwin@cygwin.com In-Reply-To: <8ED2FA87C8ACC04192709688DDFD5F5F09B9BF@calttsv025.cal.riotinto.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes X-SW-Source: 2004-05/txt/msg00085.txt.bz2 Can i resolve the name mangling issue by adding the extern "C" declaration for every function that I'm exporting in the MSVC created DLL. I tried this but doesn't seem to work.Is there any other way to do this. Thanks john --- "Billinghurst, David (CALCRTS)" wrote: > > 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/ > __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover -- 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/