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

My Fortran Console App cannot find my Fortran DLL.

aggiedad
Beginner
773 Views

Hi,

I am using VS 2003 and have two applications in my project. A Fortran DLL and a Fortran Console app. I am having a problem with my Fortran Console app not seeing the needed DLL from a Fortran DLL app.

In the past I have had the Fortran DLL app. output the DLL in the debug folder of the console app. This of course works fine but I would now like to leave the DLL in it own debug folder and have the console app look for it there.

It would seem that I need to simply add the path or path and filename to a property in the console apps. property section. But I have tried this in a number of places and have not found the correct place or syntax.

Additional information: The two projects compile I only get the error when I run the console application. The error says "The dynamic link library xxxxx.dll could not be found in the specified path (then lists the debug folder of the console app and all folders in my path)

I guess my question is first can this be done? And secondly, where should I place the path in the properties section.

Appreciate your help!

Eric

0 Kudos
2 Replies
aggiedad
Beginner
773 Views

Never mind. I places the path to the DLL's debug folder in the Configuration Properties - Debugging - Working Directory in the properties section of the console project.

That appears to be working.

Eric

0 Kudos
Steven_L_Intel1
Employee
773 Views
0 Kudos
Reply