- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a Fortran EXE which is to call a Fortran DLL (call it A_DLL). A_DLL calls other Fortran DLLs (call them B_DLL and C_DLL). When I create each of the DLLs they link just fine. When I try to create the EXE, it complains that
LINK : fatal error LNK1181: cannot open input file ".ReleaseA_DLL.lib"
The linking operations on the other two DLLs both create each of .DLL, .EXP and .LIB output. The linking operation on A_DLL only creates the .DLL file.
I've looked through and compared A_DLL.dsp vs B_DLL.dsp, but they're effectively the same.
What am I missing?
LINK : fatal error LNK1181: cannot open input file ".ReleaseA_DLL.lib"
The linking operations on the other two DLLs both create each of .DLL, .EXP and .LIB output. The linking operation on A_DLL only creates the .DLL file.
I've looked through and compared A_DLL.dsp vs B_DLL.dsp, but they're effectively the same.
What am I missing?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A_DLL does not have any !DEC$ ATTRIBUTES DLLEXPORT directives specifying that symbols should be exported, or the directives that are there are incorrect.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are so right. I was so intent on looking at differences in the compile projects that I didn't suspect the source code. I copied the most of the DLL-interface code from C_DLL to A_DLL and failed change the text of the DEC$ ATTRIBUTES line.
Thanks
Thanks

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