This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Trying to link an MSVC DLL with a Cygwin Application
- From: john george <jgsave at yahoo dot com>
- To: "Billinghurst, David \(CALCRTS\)" <david dot billinghurst at comalco dot riotinto dot com dot au>, cygwin at cygwin dot com
- Date: Mon, 3 May 2004 22:57:10 -0700 (PDT)
- Subject: RE: Trying to link an MSVC DLL with a Cygwin Application
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)"
<david.billinghurst@comalco.riotinto.com.au> 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/