This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: anyone know how to convert an existing visual C++ import library and dll into a cygwin one?


At 05:00 AM 4/24/2002, Jonathan Wilson wrote:
>I have a .dll and a .lib that work with visual C++ (Plus some headers that I have already ported) and I need to convert the dll and lib into something I can link in with cygwin gnu LD (version 2.11.90 is what ld -v says it is) Gcc is 2.95.3-5


The first approximation of this is to just add the import library to the 
link line.  It's far preferable to pass this as a parameter to gcc though.
Once you get this linked in, it may not run.  There are a few possibilities
as to why, the most significant being the possible clash of C run-times.
But, just take it one step at a time.

Of course, all of this becomes a moot point if the library you want to link
to has a C++ interface.  Currently, mixing libraries from different compilers
is only feasible with C calls.





Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]