Usage of dll created in cygwin in VC++

S. Krishnaprasad s.krishnaprasad@tatainfotech.com
Sun Jan 31 23:52:00 GMT 1999


I have used 
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 <dllname>
EXPORTS
 
    function1
    function2
 
etc..
 
Then I created a import file  .lib 
using
 
dllwrap --dllname <name.dll> --output-lib 
<libname.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.
 
 
 
 



More information about the Cygwin mailing list