您的位置:首页 > 编程语言 > MATLAB

Solve Error : Undefined function or variable ‘setInitialWorkingFolder’. Error in matlabrc (line 197)

2017-02-07 02:14 721 查看
When compile program using Visual Studio 2015, Matlab 2016b, and OpenCV 3.1.0, one might get the error as follow:

Undefined function or variable ‘setInitialWorkingFolder’.

Error in matlabrc (line 197)

Could not initialize the library properly

This error occurs because there might be multiple versions of Matlab and OpenCV. So you need to uninstall all other version and Matlab and OpenCV. If you really don't want to uninstall them, at least you need to remove them from the enviromental path.

For Matlab 2016b, be sure to include correct path, like:

SET MATLAB_VERSION=R2016b

SET MATLABROOT=%PROGRAMFILES%\MATLAB\%MATLAB_VERSION%

SET PATH=%MATLABROOT%\bin\win64;%MATLABROOT%\runtime\win64;%MATLABROOT%\bin;%PATH%
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐