Why does my library built with Application Compiler crash due to undefined function 'pathdef'?
2 views (last 30 days)
I am building a .Net class library dll which wraps some Matlab functions in .m files. The build completes and the .dll is produced. I can reference the DLL in a .Net project, but when the project runs, I see these errors in the debugger:
'Example1.exe' (CLR v4.0.30319: Example1.exe):
Undefined function or variable 'pathdef'.
Error in startup (line 1)
Exception thrown: 'System.ApplicationException' in MWArray.dll
Exception thrown: 'System.Exception' in MWArray.dll
and the class doesn't load. My scripts do not call pathdef. What is wrong?
Sindhu Yerragunta on 3 May 2018
Try executing the following commands from MATLAB command prompt,
restoredefaultpath % This will remove any custom paths
and refer the following link for more information regarding the same error,
Hope this helps.