libeng.dll problem with using Matlab to C/C++

19 views (last 30 days)
Hyeon yeong Kim
Hyeon yeong Kim on 4 Jan 2021
Answered: Srishti Sahni on 18 May 2022
First, I am using Windows 10 pro 64bit, visual studio 2019, and Matlab R2020b.
I wanted to use Matlab in C++ and followed the common ways of the Internet.
The following error occurred when debugging.
error : "The program can't start because libeng.dll is missing form your computer. Try reinstalling the program to fix this problem"
The first way I followed the link's solution, but it wasn't solved.(https://kr.mathworks.com/matlabcentral/answers/100603-how-can-i-compile-a-matlab-engine-application-using-microsoft-visual-studio-9-0-or-10-0?s_tid=srchtitle)
The second method downloaded 'libeng.dll' from the Internet and copied it to "C:\Windows\System32", "C:\Windows\SysWOW64", but the following error occurred.
error : "The application was unable to start correctly (0xc000007b). Click OK to close the application."
To solve the error 0xc000007b, I decided to use the Dependency Walker to see if there was a problem with the libeng.dll.
I don't know why, but on my computer, the Defendency Walker didn't work and I used the open-source Modern Defense Walker. (https://github.com/lucasg/Dependencies)
The libeng.dll on System32 and SysWOW64 was scanned, but no problems were found.
And I checked the .exe file of the project, I found that 'libmx.dll' and 'libeng.dll' are the problems.
What should I do here?

Answers (1)

Srishti Sahni
Srishti Sahni on 18 May 2022
This error indicates that the file libeng.dll is missing from your MATLAB installation directory.
This can occur if certain antivirus software is installed (Webroot, etc.) and it quarantines the file.
To resolve the issue, open the antivirus software and restore the quarantined file libeng.dll.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by