- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
I have a Fortran code that requires a particular .lib file to run. Some time ago, I was advised (on this forum), as a simple solution, to add the .lib file using the Project-> Add Exisiting Item, and then compile, which I have done and this has worked perfectly. Doing this though, required me to make a copy of the associated .dll and put it in the same directory as the Intel generated .exe file.
Is there a way of easily including the .dll by means of a directory name where it resides as opposed to me having to copy it to the same directory as the .exe? I can not seem to find the proper place in the Project Properties to add the particular .dll file name.
Thank you very much for your help.
Sincerely,
David
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, that's not the way Windows works. There is nothing in the executable that identifies the DLL other than its name, and Windows looks in a specific set of places for the DLL. The article at the link mentions DLL redirection, but that's no longer supported. It's possible you might be able to do this with a manifest, but I am not familiar enough with these to know the details.
If this is a DLL you use a lot, add its folder to the system PATH environment variable, and you'll be all set.
If this is a DLL you use a lot, add its folder to the system PATH environment variable, and you'll be all set.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page