public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Arash Partow" <arashp@hotmail.com>
To: cygwin@cygwin.com
Subject: RE: Trying to link an MSVC DLL with a Cygwin Application
Date: Tue, 04 May 2004 09:07:00 -0000	[thread overview]
Message-ID: <BAY9-F27qTnrrXj7gC20000c839@hotmail.com> (raw)

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/

             reply	other threads:[~2004-05-04  9:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04  9:07 Arash Partow [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-05-04  5:23 Billinghurst, David (CALCRTS)
2004-05-04  5:57 ` john george
2004-05-04 13:47   ` Igor Pechtchanski
2004-05-04 18:10   ` Jörg Schaible
     [not found]     ` <4098984F.8010505@luukku.com>
2004-05-05 16:58       ` Jörg Schaible
2004-05-04  5:07 john george

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY9-F27qTnrrXj7gC20000c839@hotmail.com \
    --to=arashp@hotmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).