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