- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page