S-function compilation error
9 views (last 30 days)
Show older comments
While compiling S-function i get the following error. Can anyone please help me out with this?
Creating library C:\Users\VISHAK~1\AppData\Local\Temp\mex_ZFK4W3\templib.x and object C:\Users\VISHAK~1\AppData\Local\Temp\mex_ZFK4W3\templib.exp
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Engine_running referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_Engine_speed_health_Engine_speed_health referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_Engine_speed_Engine_speed referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Vehicle_standstill referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Vehicle_rear_gear referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Vehicle_low_speed_driving referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Vehicle_forward_gear referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Brake_pedal_pressed referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Acc_pedal_pressed referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_CurrentGear_CurrentGear referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_BrakePedalPos_BrakePedalPos referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_AccPedalPos_AccPedalPos referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_Vehicle_speed_Vehicle_speed referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Supply_pressure_low referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_p_supply_R_filt_p_supply_R_filt referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_p_supply_FR_filt_p_supply_FR_filt referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_p_supply_FL_filt_p_supply_FL_filt referenced in function _Runnable_Activ_Cond_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Pres_fb_enable_rr_F_PPSC_Pres_fb_enable_rr referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Pres_fb_enable_rl_F_PPSC_Pres_fb_enable_rl referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Pres_fb_enable_fr_F_PPSC_Pres_fb_enable_fr referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Pres_fb_enable_fl_F_PPSC_Pres_fb_enable_fl referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Non_lin_damp_enable_F_PPSC_Non_lin_damp_enable referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Sky_roll_active_F_PPSC_Sky_roll_active referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Sky_pitch_active_F_PPSC_Sky_pitch_active referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Sky_heave_active_F_PPSC_Sky_heave_active referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Pres_ctrl_enable_F_PPSC_Pres_ctrl_enable referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Height_ctrl_enable_F_PPSC_Height_ctrl_enable referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Cur_ctrl_enable_F_PPSC_Cur_ctrl_enable referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Acc_y_comp_active_F_PPSC_Acc_y_comp_active referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_F_PPSC_Acc_x_comp_active_F_PPSC_Acc_x_comp_active referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Activ_Log_step_F_PPSC_Supply_pressure_low referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Activ_Log_step_F_PPSC_Engine_running referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Activ_Log_step_F_PPSC_Vehicle_forward_gear referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Activ_Log_step_F_PPSC_Brake_pedal_pressed referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Activ_Log_step_F_PPSC_Vehicle_standstill referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Activ_Log_step_F_PPSC_Vehicle_low_speed_driving referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Activ_Log_step_F_PPSC_Acc_pedal_pressed referenced in function _Runnable_Activ_Log_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Write_PPSC_State_PPSC_State referenced in function _Runnable_Determi_Veh_State_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_Read_F_PPIO_Command_level_cabin_sw_F_PPIO_Command_level_cabin_sw referenced in function _Runnable_Determi_Veh_State_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Determi_Veh_State_step_F_PPSC_Vehicle_rear_gear referenced in function _Runnable_Determi_Veh_State_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Determi_Veh_State_step_F_PPSC_Vehicle_forward_gear referenced in function _Runnable_Determi_Veh_State_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Determi_Veh_State_step_F_PPSC_Vehicle_standstill referenced in function _Runnable_Determi_Veh_State_step
PPSC_SFunction.obj : error LNK2019: unresolved external symbol _Rte_IrvIRead_Runnable_Determi_Veh_State_step_F_PPSC_Acc_pedal_pressed referenced in function _Runnable_Determi_Veh_State_step
PPSC_SFunction.mexw32 : fatal error LNK1120: 43 unresolved externals
C:\PROGRA~1\MATLAB\R2010B~1\BIN\MEX.PL: Error: Link of 'PPSC_SFunction.mexw32' failed.
??? Error using ==> mex at 208 Unable to complete successfully.
Thanks in advance.
0 Comments
Answers (1)
Kaustubha Govind
on 9 Jul 2012
Is this a hand-written S-function? It looks like you might need to link against additional source files or libraries that define _Rte_IrvIWrite_Runnable_Activ_Cond_step_F_PPSC_Engine_running, etc. If these functions are defined in .c files, simply add them to the end of your MEX command. If they are libraries files, add them to the MEX command using the -l option.
0 Comments
See Also
Categories
Find more on Naming Conventions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!