Why do I receive the error message "The procedure entry point ##### could not be located in the dynamic-link library ######.dll" when I run my Engine application created with MATLAB 7.1 (R14SP3)?

15 views (last 30 days)
I am building a MATLAB Engine application using the MATLAB commands described in the help documentation:
optsfile = [matlabroot '\bin\win32\mexopts\lccengmatopts.bat'];
mex('-f', optsfile, 'engwindemo.c');
When I try to run the demo I obtain the following error message:
The procedure entry point ##### could not be located in the dynamic-link library ######.dll

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This error indicates that you have multiple installations of MATLAB on your computer. When the executable is running, the system is attempting to link against the DLL corresponding to an older version of MATLAB, thus resulting in this error.
To resolve this problem, change your system path variable such that $MATLAB\bin\win32 corresponding to the later MATLAB release or MATLAB Math and Graphics Run-Time Libraries appears first on the system path. Here, $MATLAB is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the MATLAB Command Prompt.
For information on setting your path please see the Related Solutions section.
Moreover, in order to run the Engine application on Windows, you need to have MATLAB registered as a COM server. This registration is part of the MATLAB installation process and should have already been done for you as part of the install. If, for some reason, the registration was not successful, you may see the following error displayed when you try to run this example:
Can't start MATLAB engine
If you see this error, you will need to manually register MATLAB as a COM server by entering the following commands in a DOS command window:
cd $MATLAB\bin\win32
matlab /regserver

More Answers (0)

MathWorks Support

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!