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

Path stories

Rudy__Delcroit
Beginner
646 Views

Hi all,

Two questions about file location and IVF :

1 I would like the linker to look for external symbol into specific directories :I've subroutines that are already compiledas object (.obj)and are located ina certain directory.Theyare NOT included in the project (meaning theydo not appear into solution explorer) however, I would like that the linker; when it is missing a subroutine; looks into that specific directories and find what it wants. How can I do that ? I try to add that directory to the %path% or the "Linker - general - additionnal library directory" but it doesn't work.

2 How can I tell fortran to open a file located into the working directory and if this file doesn't exist look into the %path% tofind it ?

Any help would be greatly appreciate.

Best Regards,

Vincent

0 Kudos
1 Solution
Steven_L_Intel1
Employee
646 Views

1. There is no way to do exactly what you want. The linker does not have the ability to just look in a folder and try any of the objects or libraries in that folder. You MUST create a reference to an object or library file name. You can do that by adding the file to your project, naming it in Additional Dependencies in the Linker properties or by using !DEC$ OBJCOMMENT directives. You can specify additional directories to look in for the named files - this is /LIBDIR for the linker or the LIB environment variable (Tim, -L is Linux), but without a file name such additions won't be helpful.

2. There is no support for a "search list" for opening files - you must add such a capability in your own application.

View solution in original post

0 Kudos
1 Reply
Steven_L_Intel1
Employee
647 Views

1. There is no way to do exactly what you want. The linker does not have the ability to just look in a folder and try any of the objects or libraries in that folder. You MUST create a reference to an object or library file name. You can do that by adding the file to your project, naming it in Additional Dependencies in the Linker properties or by using !DEC$ OBJCOMMENT directives. You can specify additional directories to look in for the named files - this is /LIBDIR for the linker or the LIB environment variable (Tim, -L is Linux), but without a file name such additions won't be helpful.

2. There is no support for a "search list" for opening files - you must add such a capability in your own application.

0 Kudos
Reply