- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to create a fortran lib file when only fortran dll file is available. Main program and obj file is not available.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to know what symbols are being exported by the DLL, you can find out using
DUMPBIN /EXPORTS YOUR.DLL
issuing the command from the directory where YOUR.DLL is located. However, If you have no ideawhat the routine and function types and arguments are in the DLL, this information will be of limited use if you want to interface to the exported routines (unless the DLL was compiled using C++ compiler and 'mangled names' are generated, in which case you can theoretically establish a lot about the calling convention, arguments and types by a process of 'demangling' the names)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Following Anthony's advice, if you get the list of the entry points you can create a dummy DLL project that contains empty routines of the same names with DLLEXPORT directives. When you build this project, which must have as its DLL name the same as the DLL you want to use, it will build a library file for you and you can then use that in your real project.
Another option is to use dynamic loading of the DLL using the LoadLibrary and GetProcAddress Win32 API routines.
Another option is to use dynamic loading of the DLL using the LoadLibrary and GetProcAddress Win32 API routines.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page