Hi,
I have a dll library and def file for this library with names of the function in dll. My question is whether somebody know how to generate import library for this dll
Regards Wojtek W.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-12-11
I think dlltool will do the trick if this is a C dll. Something like:
If, however, this is a C++ dll compiled with some other compiler (e.g. Visual C++), chances are it won't work. The problem is due to different name-mangling and calling conventions across compilers.
Hope this helps.
Regards,
YR
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a dll library and def file for this library with names of the function in dll. My question is whether somebody know how to generate import library for this dll
Regards Wojtek W.
I think dlltool will do the trick if this is a C dll. Something like:
dlltool --dll-name mydll.dll --output-lib libmydll.lib
If, however, this is a C++ dll compiled with some other compiler (e.g. Visual C++), chances are it won't work. The problem is due to different name-mangling and calling conventions across compilers.
Hope this helps.
Regards,
YR