PreScan是我正在使用的车辆模拟软件。 https://tass.plm.automation.siemens.com/prescan 在Matlab 2015b中使用Simulink时工作正常,但在使用Matlab 20178a时显示错误。
Error using mex
C:\Users\watouser\AppData\Roaming\TNO\PreScan\8.2.0\sfunction_R2018a\sfun_Controller.c:44:0: warning: "MX_COMPAT_32" redefined
#define MX_COMPAT_32
^
<command-line>:0:0: note: this is the location of the previous definition
C:\Users\watouser\AppData\Roaming\TNO\PreScan\8.2.0\sfunction_R2018a\sfun_Controller.c: In function 'void mdlStart(SimStruct*)':
C:\Users\watouser\AppData\Roaming\TNO\PreScan\8.2.0\sfunction_R2018a\sfun_Controller.c:548:67: error: 'prescan_get_host_flags'
was not declared in this scope
prescan_controller_setflags(&work1, prescan_get_host_flags(S));
^
Error in legacycode.LCT/compile
Error in legacycode.LCT.legacyCodeImpl
Error in legacy_code (line 101)
[varargout{1:nargout}] = legacycode.LCT.legacyCodeImpl(action, varargin{1:end});
Error in build_Controller
Error in build_rtw_blocks
Error in prepare_sfunctions
Error in SimCore_startup_common
Error in prescan_startup
答案 0 :(得分:0)
可能是您的Prescan版本与Matlab 2018a不兼容。 截至2018年8月,Prescan仅在其网站上列出与Matlab 2017b的兼容性: https://tass.plm.automation.siemens.com/new-prescan