I am trying to compile my simulink model and got these errors, please help!
4 次查看(过去 30 天)
显示 更早的评论
### Compiling BD500_Model_sfun.c
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /MD /I "c:\matlab\r2010bsp1\extern\include" /I "c:\matlab\r2010bsp1\simulink\include" /I "c:\matlab\r2010bsp1\stateflow\c\mex\include" /I "c:\matlab\r2010bsp1\stateflow\c\debugger\include" "BD500_Model_sfun.c"
BD500_Model_sfun.c
### Compiling BD500_Model_sfun_registry.c
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /MD /I "c:\matlab\r2010bsp1\extern\include" /I "c:\matlab\r2010bsp1\simulink\include" /I "c:\matlab\r2010bsp1\stateflow\c\mex\include" /I "c:\matlab\r2010bsp1\stateflow\c\debugger\include" "BD500_Model_sfun_registry.c"
BD500_Model_sfun_registry.c
### Linking ...
link.exe /nologo /dll /OPT:NOREF /export:mexFunction /OUT:BD500_Model_sfun.mexw64 /map:"BD500_Model_sfun.map" "c:\matlab\r2010bsp1\stateflow\c\mex\lib\win64\sfc_mex.lib" "c:\matlab\r2010bsp1\stateflow\c\debugger\lib\win64\sfc_debug.lib" "C:\MatLab\R2010bSP1\extern\lib\win64\microsoft\libmx.lib" "C:\MatLab\R2010bSP1\extern\lib\win64\microsoft\libmex.lib" "C:\MatLab\R2010bSP1\extern\lib\win64\microsoft\libmat.lib" "C:\MatLab\R2010bSP1\extern\lib\win64\microsoft\libfixedpoint.lib" "C:\MatLab\R2010bSP1\extern\lib\win64\microsoft\libut.lib" "C:\MatLab\R2010bSP1\extern\lib\win64\microsoft\libmwmathutil.lib" "C:\MatLab\R2010bSP1\extern\lib\win64\microsoft\libemlrt.lib" "c:\matlab\r2010bsp1\lib\win64\libippmwipt.lib" "C:\New EHSV Position Monitor Model\EHSV Position Monitor_Simulation Model\slprj\_sfprj\BD500_Model\BD500_Model_Library\sfun\src\BD500_Model_Library_sfun.lib" "c:\matlab\r2010bsp1\extern\lib\win64\microsoft\libmwblascompat32.lib" @BD500_Model_sfun.mol
Creating library BD500_Model_sfun.lib and object BD500_Model_sfun.exp
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxGetString_730 referenced in function _sf_process_get_eml_resolved_functions_info_call
BD500_Model_sfun.obj : error LNK2001: unresolved external symbol _mxGetString_730
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2001: unresolved external symbol _mxGetString_730
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxIsChar referenced in function _sf_process_get_eml_resolved_functions_info_call
BD500_Model_sfun.obj : error LNK2001: unresolved external symbol _mxIsChar
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2001: unresolved external symbol _mxIsChar
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mexUnlock referenced in function _sf_mex_unlock_call
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mexIsLocked referenced in function _sf_mex_unlock_call
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _sf_debug_terminate referenced in function _sf_machine_global_terminator
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _sim_mode_is_rtw_gen referenced in function _sf_machine_global_initializer
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2001: unresolved external symbol _sim_mode_is_rtw_gen
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mexWarnMsgTxt referenced in function _ssWarning
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mexCallMATLAB referenced in function __ssFatalError
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxCreateString referenced in function __ssFatalError
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2001: unresolved external symbol _mxCreateString
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxGetClassID referenced in function _ssGetDTypeIdFromMxArray
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlTerminate referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlZeroCrossings referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlSetSimState referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlGetSimState referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlDerivatives referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlOutputs referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlDisable referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlEnable referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlStart referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlInitializeConditions referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlInitializeSampleTimes referenced in function _mexFunction
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxGetPr referenced in function _mexFunction
BD500_Model_sfun.obj : error LNK2001: unresolved external symbol _mxGetPr
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2001: unresolved external symbol _mxGetPr
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2001: unresolved external symbol _mxGetPr
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mexErrMsgTxt referenced in function _ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _sf_debug_api referenced in function _ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxCreateDoubleMatrix_730 referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun.obj : error LNK2001: unresolved external symbol _mxCreateDoubleMatrix_730
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2001: unresolved external symbol _mxCreateDoubleMatrix_730
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2001: unresolved external symbol _mxCreateDoubleMatrix_730
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlExtModeExec referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlProcessParameters referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlRTW referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlSetWorkWidths referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mdlInitializeSizes referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxIsNumeric referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxIsComplex referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxGetN referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxGetM referenced in function __ProcessMexSfunctionCmdLineCall
BD500_Model_sfun_registry.obj : error LNK2019: unresolved external symbol _mxCalloc referenced in function __CreateSimStruct
BD500_Model_sfun.obj : error LNK2019: unresolved external symbol _mxGetScalar referenced in function _sf_BD500_Model_process_check_sum_call
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2001: unresolved external symbol _mxGetScalar
BD500_Model_sfun.obj : error LNK2019: unresolved external symbol _sf_debug_set_machine_data_thresholds referenced in function _BD500_Model_debug_initialize
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2001: unresolved external symbol _sf_debug_set_machine_data_thresholds
BD500_Model_sfun.obj : error LNK2019: unresolved external symbol _sf_debug_set_machine_event_thresholds referenced in function _BD500_Model_debug_initialize
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2001: unresolved external symbol _sf_debug_set_machine_event_thresholds
BD500_Model_sfun.obj : error LNK2019: unresolved external symbol _sf_debug_initialize_machine referenced in function _BD500_Model_debug_initialize
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2001: unresolved external symbol _sf_debug_initialize_machine
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2019: unresolved external symbol _mxDestroyArray referenced in function _sf_BD500_Model_Library_get_eml_resolved_functions_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2001: unresolved external symbol _mxDestroyArray
BD500_Model_Library_sfun.lib(BD500_Model_Library_sfun.obj) : error LNK2019: unresolved external symbol _mxDuplicateArray referenced in function _sf_BD500_Model_Library_get_eml_resolved_functions_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2001: unresolved external symbol _mxDuplicateArray
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_addfield referenced in function _sf_c3_BD500_Model_Library_get_eml_resolved_functions_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_create referenced in function _sf_c3_BD500_Model_Library_get_eml_resolved_functions_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_assign referenced in function _sf_c3_BD500_Model_Library_get_eml_resolved_functions_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_createstruct referenced in function _sf_c3_BD500_Model_Library_get_eml_resolved_functions_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _mxCreateDoubleScalar referenced in function _sf_c3_BD500_Model_Library_get_autoinheritance_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _mxSetField_730 referenced in function _sf_c3_BD500_Model_Library_get_autoinheritance_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _mxCreateStructMatrix_730 referenced in function _sf_c3_BD500_Model_Library_get_autoinheritance_info
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_error_message referenced in function _c3_BD500_Model_Library_method_dispatcher
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_import referenced in function _initialize_params_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_get_sfun_param referenced in function _initialize_params_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_set_error_prefix_string referenced in function _initialize_params_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_set_rtw_dwork_info referenced in function _mdlSetWorkWidths_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mark_chart_reusable_outputs referenced in function _mdlSetWorkWidths_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mark_chart_expressionable_inputs referenced in function _mdlSetWorkWidths_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_rtw_info_uint_prop referenced in function _mdlSetWorkWidths_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_is_chart_inlinable referenced in function _mdlSetWorkWidths_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sim_mode_is_external referenced in function _mdlSetWorkWidths_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_decode_encoded_mx_struct_array referenced in function _sf_get_sim_state_info_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_reset_current_state_configuration referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_instance_data_value_ptr referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_chart_data_compiled_props referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_chart_transition_coverage_maps referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_instance_transition_coverage_weights referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _cv_eml_init_if referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _cv_eml_init_fcn referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _cv_eml_init_script referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_cv_init_trans referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_cv_init_state referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_cv_init_chart referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_chart_decomposition referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_chart_substate_count referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_chart_state_info referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_chart_data_props referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_chart_event_thresholds referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_set_chart_disable_implicit_casting referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_initialize_chart referenced in function _chart_debug_initialization
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_check_for_state_inconsistency referenced in function _sf_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_data_range_wrapper referenced in function _sf_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_call referenced in function _sf_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_symbol_scope_pop referenced in function _c3_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _mxGetNaN referenced in function _c3_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _muDoubleScalarIsNaN referenced in function _c3_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _muDoubleScalarAbs referenced in function _c3_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _eml_debug_line_call referenced in function _c3_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _cv_eml_eval referenced in function _c3_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_symbol_scope_add_eml referenced in function _c3_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_debug_symbol_scope_push_eml referenced in function _c3_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _muDoubleScalarPower referenced in function _c3_power
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _muDoubleScalarFloor referenced in function _c3_power
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_call_debug referenced in function _c3_eml_error
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_call_matlab referenced in function _sf_internal_get_sim_state_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_setcell referenced in function _get_sim_state_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_createcellarray referenced in function _get_sim_state_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_destroy referenced in function _set_sim_state_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_getcell referenced in function _set_sim_state_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_mex_dup referenced in function _set_sim_state_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_clear_rtw_identifier referenced in function _sf_opaque_terminate_c3_BD500_Model_Library
BD500_Model_Library_sfun.lib(c3_BD500_Model_Library.obj) : error LNK2019: unresolved external symbol _sf_write_symbol_mapping referenced in function _mdlRTW_c3_BD500_Model_Library
MSVCRT.lib(crtdll.obj) : error LNK2019: unresolved external symbol __imp__EncodePointer@4 referenced in function _pre_c_init
MSVCRT.lib(atonexit.obj) : error LNK2001: unresolved external symbol __imp__EncodePointer@4
MSVCRT.lib(crtdll.obj) : error LNK2019: unresolved external symbol __imp__DecodePointer@4 referenced in function __CRT_INIT@12
MSVCRT.lib(atonexit.obj) : error LNK2001: unresolved external symbol __imp__DecodePointer@4
MSVCRT.lib(crtdll.obj) : error LNK2019: unresolved external symbol __imp__InterlockedExchange@8 referenced in function __CRT_INIT@12
MSVCRT.lib(crtdll.obj) : error LNK2019: unresolved external symbol __imp__Sleep@4 referenced in function __CRT_INIT@12
MSVCRT.lib(crtdll.obj) : error LNK2019: unresolved external symbol __imp__InterlockedCompareExchange@12 referenced in function __CRT_INIT@12
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__TerminateProcess@8 referenced in function ___report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__GetCurrentProcess@0 referenced in function ___report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__UnhandledExceptionFilter@4 referenced in function ___report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__SetUnhandledExceptionFilter@4 referenced in function ___report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__IsDebuggerPresent@0 referenced in function ___report_gsfailure
MSVCRT.lib(cpu_disp.obj) : error LNK2019: unresolved external symbol __imp__IsProcessorFeaturePresent@4 referenced in function ___sse2_available_init
MSVCRT.lib(dllmain.obj) : error LNK2019: unresolved external symbol __imp__DisableThreadLibraryCalls@4 referenced in function _DllMain@12
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__QueryPerformanceCounter@4 referenced in function ___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__GetTickCount@0 referenced in function ___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__GetCurrentThreadId@0 referenced in function ___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__GetCurrentProcessId@0 referenced in function ___security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__GetSystemTimeAsFileTime@4 referenced in function ___security_init_cookie
BD500_Model_sfun.mexw64 : fatal error LNK1120: 116 unresolved externals
NMAKE : fatal error U1077: '"C:\PROGRAM FILES (X86)\Microsoft Visual Studio 10.0\VC\bin\link.exe"' : return code '0x460'
Stop.
3 个评论
Kaustubha Govind
2014-6-16
Dekun: It looks like Luen is simply updating a model containing Stateflow charts and/or MATLAB Function blocks.
Leun: I would recommend contacting MathWorks Tech Support if you are unable to get help on the forum.
回答(2 个)
Dekun Pei
2014-6-18
This is interesting because the linking command looks right, yet it is complaining about unresolved symbols. Can you locate this file and see if it is present: C:\MatLab\R2010bSP1\extern\lib\win64\microsoft\libmx.lib
This lib files contains symbols for mxGetString, mxIsChar, etc, but these symbols are currently reported unresolved from your error.
The other possibility I can think of is if you switch between 32-bit and 64-bit MATLAB of the same release and did not do "mex -setup" every time you switch. The MEX option file (it configures the environment to compile the stateflow chart) is in the preference directory shared by both 32-bit and 64-bit MATLAB, yet the content is slightly different for 32-bit and 64-bit. So you if did a "mex -setup" on a 32-bit MATLAB and then switch to 64-bit, MEX will get inconsistent. This will also be an issue if you have two of the same release of MATLAB installed at different locations.
0 个评论
Sindhuja Neelabai
2015-4-9
I am also trying to compile the code in Visual Studio 2010. and got the same error like
1>simulink.obj : error LNK2019: unresolved external symbol _mdlTerminate referenced in function _mexFunction 1>simulink.obj : error LNK2019: unresolved external symbol _mdlOutputs referenced in function _mexFunction 1>simulink.obj : error LNK2019: unresolved external symbol _mdlStart referenced in function _mexFunction 1>simulink.obj : error LNK2019: unresolved external symbol _mdlInitializeSampleTimes referenced in function _mexFunction
Please give an idea for this.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!