Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Doubly Dependent Fortran DLLs

aparker
Beginner
501 Views
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?
0 Kudos
2 Replies
Steven_L_Intel1
Employee
501 Views
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
0 Kudos
aparker
Beginner
501 Views
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
0 Kudos
Reply