Creating DLL's for use with MSVC

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Wed Mar 10 18:31:00 GMT 2004


On Wed, Mar 10, 2004 at 09:38:06AM -0600, Brian Ford wrote:
>On Wed, 10 Mar 2004, Christopher Faylor wrote:
>>On Wed, Mar 10, 2004 at 02:21:41PM +0100, Niklas Wallin wrote:
>>>When I try to link the .lib file with an MSVC executable it still can't
>>>find the references.  I am not sure what to expect, should the lib, def
>>>and dll contain Cygwin decorated symbols (which is the case now) or the
>>>MSVC symbols?  Or do I have to add any flags to the MSVC linker
>>>(compiler) to solve the name differences?
>>
>>http://cygwin.com/faq/faq_4.html#SEC120
>
>I am probably wrong, as I'm sure cgf is *way* more knowledgable than I,
>but I got the impression this was no longer true via the <mingw-users
>at lists dot sourceforge dot net> list.

The last I saw, there was a big discussion about this on the gcc mailing
list and everyone agreed that gcc was not going to change anytime soon.

As always, it is possible to link some C objects between MSVC and gcc.
It isn't possible to link C++ objects which export symbols.

However if you think this has changed why not post a URL which explains
how this came to be?

--
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/



More information about the Cygwin mailing list