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

How To Resolve Error 53 File Not Found

ddm1
초급자
10,124 조회수

Are there any known issues with VS Community 19 Version 16.11.27 ?

I am having trouble creating a DLL from Fortran code where I have successfully created an EXE.

I get error 53 File Not Found.

I have created EXE & DLL in the past many times with prior versions of VS. I tried a number of compiler settings to resolve the issue and nothing seems to work.

 

I am calling the DLL from Visual Basic with MS Excel.

 

0 포인트
13 응답
andrew_4619
명예로운 기여자 III
10,111 조회수

You have linkage to DLL's that can't be found I think? Is this app built with debug? Are you running inside or outside of VS? 

0 포인트
ddm1
초급자
10,091 조회수
0 포인트
Steve_Lionel
명예로운 기여자 III
10,108 조회수

VB gives "Error 53" when it can't load a user DLL. This can be the DLL itself or, more often, a DLL that DLL depends on.  As hinted by @andrew_4619 , your DLL may be built as a Debug configuration, which means it can't be loaded outside of Visual Studio. If that's the case, switch to a Release configuration. This will still depend on Intel Fortran DLLs which will be installed along with the compiler. If you're going to use this on a system where the compiler is not installed, you'll need the Intel Fortran Redistributables installed there. An alternative is to change the DLL project settings to link against static libraries - do this only if there's no other Fortran (or C/C++) in the application.

0 포인트
ddm1
초급자
10,091 조회수

I did NOT build DLL with debug option, I used Release as I have done many times in the past. I am running the DLL on the same machine that I built the DLL.

 

0 포인트
Steve_Lionel
명예로운 기여자 III
10,084 조회수

In that case, use GitHub - lucasg/Dependencies: A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues. to determine what the dependencies of your DLL are. And, of course, verify that you are specifying the correct path to your DLL.

0 포인트
ddm1
초급자
10,079 조회수

I have used "depends.exe" in the past perhaps it will help in this instance. I find the output somewhat cryptic. I will also try the updated version you reference.

0 포인트
ddm1
초급자
9,911 조회수

The picture below is the output from Dependency Walker. I am not sure what to do next to resolve Error 53 File Not Found

 

ddm1_0-1697451666307.png

 

0 포인트
Arjen_Markus
명예로운 기여자 II
9,906 조회수

The screenshot indicates that you are using the old version of dependency walker. Try the one Steve Lionel pointed to. Also something to watch out for: 32-bits versus 64-bits DLLs. I do not know what your VB program but it may very well be a 32-bits version.

0 포인트
ddm1
초급자
9,880 조회수

I thought the old Dependency Walker would provide some meaningful information despite its age. I have not used the newer version yet. the DLL is compiled as 32-bit as intended.

 

0 포인트
andrew_4619
명예로운 기여자 III
9,876 조회수

https://lucasg.github.io/Dependencies/ is the one that works, the old one gets very confused with 32 and 64 bit dlls

0 포인트
ddm1
초급자
9,871 조회수

When I run the link above, I get 

 

ddm1_0-1697498903299.png

 

It appears a single file is causing am error, not sure how to fix.

0 포인트
Arjen_Markus
명예로운 기여자 II
9,847 조회수

That is not a DLL I have ever come across. The message that "we" could not find it anymore is also rather peculiar. Have you searched the Internet for problems concerning this DLL? Or its origin? Perhpas that can give you a clue as to what you should do.

0 포인트
Steve_Lionel
명예로운 기여자 III
9,827 조회수

This DLL is a "red herring" - it isn't a problem. See kernel32.dll dependenci ext-ms-win-oobe-query-l1-1-0.dll missing from Windows 10 - Microsoft Q&A and the answer, though it doesn't help with the original problem.

0 포인트
응답