From: s DOT krishnaprasad AT tatainfotech DOT com (S. Krishnaprasad) Subject: Usage of dll created in cygwin in VC++ 19 Jan 1999 12:11:53 -0800 Message-ID: <000f01bc05f0$2fee7d60$11247aa3.cygnus.gnu-win32@sdf5_l1117.tatainfotech.co.in> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000C_01BC061E.48EDC9A0" To: "cygwin" This is a multi-part message in MIME format. ------=_NextPart_000_000C_01BC061E.48EDC9A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have used=20 dllwrap --export-all mdll.dll mylib.a -L. -lgmp I get the DLL file. But when I try to use it in a Visual C++ application it gives me a = undefined reference to the function names defined in this DLL. I created a export .DEF file which is as follows LIBRARY EXPORTS function1 function2 etc.. Then I created a import file .lib using dllwrap --dllname --output-lib This created a .lib file This when linked into a Visual C++ application it compiles and links = properly but when I try to run this application it just terminates at the function call. Can anybody help me. ------=_NextPart_000_000C_01BC061E.48EDC9A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have used
dllwrap --export-all mdll.dll = mylib.a -L.=20 -lgmp
 
I get the DLL file.
But when I try to use it in a Visual = C++=20 application it gives me a undefined reference to the = function
names defined in this = DLL.
I created a export .DEF file which = is as=20 follows
 
LIBRARY <dllname>
EXPORTS
 
    = function1
    = function2
 
etc..
 
Then I created a import file  = ..lib=20 using
 
dllwrap --dllname <name.dll> = --output-lib=20 <libname.lib>
 
This created a .lib = file
This when linked into a Visual C++ = application=20 it compiles and links properly but when
I try to run this application it = just terminates=20 at the function call.
 
 
Can anybody help me.
 
 
 
 
------=_NextPart_000_000C_01BC061E.48EDC9A0-- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".