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

linking to .dll using .lib

David_Mccabe
Beginner
359 Views
Hi,

I am attempting to link an Intel Fortranprogram to aC++.dll using the following method


project properties:

-Configuration Properties
-Linker
-Input
Additional Dependancies =


My problem is that the .lib file is not located in the same folder as the .dll.
Is it possible to link to this .dll without moving either of the files and what additional steps would I have to take?









0 Kudos
1 Reply
mecej4
Honored Contributor III
359 Views
The Microsoft linker does not use the DLL. Therefore, only the .LIB file needs to be in a known location.

After linking, in order to run your .EXE you need to have the DLL accessible through the PATH variable or through a setting in your project.
0 Kudos
Reply