|
From: | Ronan Scaife |
Subject: | Re: mkoctfile problem |
Date: | Wed, 21 Jan 2009 13:31:59 +0000 |
User-agent: | Thunderbird 2.0.0.19 (Windows/20081209) |
Dear all,many years ago I faced the same problem with one particular MSVC DLL; for the "dlportio" universal driver shim, but found out how to do it with essentially any MSVC dll and MinGW32 C code.
The short version; mingw32 certainly *used* to be able to take a MSVC-compiled dll and work out how to link to it *without* needing an import library.
The www page I created to describe it is (sorry!) a bit out of date, but may still be useful:
<http://elm.eeng.dcu.ie/~scaifer/win2k-dlportio-mingw/DLPORTIOandWIN2KandMinGW32.html> Best Wishes, Michael Goffioul wrote:
On Wed, Jan 21, 2009 at 10:52 AM, Allahyari Rahim <address@hidden> wrote:hello, In my directory "C:\CPLUSPLUS\MyDLL2\Debug" subsist all this files MyDLL2.obj MyDLL2.dll MyDLL2.libSo basically, you want to mix MSVC and MinGW compiled code. As long as it's C code and it's not using __stdcall calling convention, this should be fine. However, I'm not sure that MinGW can deal directly with import lib files generated by MSVC. What you can try is mkoctfile -c TWUsetUserAgent.cc mkoctfile -o TWUsetUserAgent.oct TWUsetUserAgent.o C:/CPLUSPLUS/MyDLL2/Debug/MyDLL2.lib Michael.
-- == Dr. Ronan Scaife =============== address@hidden ========== RINCE (Research Inst. for Networks and Communications Engineering), School of Elec Eng, Dublin City University, Dublin 9, IRELAND. http://www.eeng.dcu.ie/~scaifer/ phone (office): +353-1-700-5434 phone (lab): +353-1-700-7623 fax: +353-1-700-5508 ====================================================================
[Prev in Thread] | Current Thread | [Next in Thread] |