I'm trying to use the S-Function builder to incorporate existing C code to perform an inverse kinematic routine for a robot. I include the header and source files like
The output of my S-Function is
clicking on the 'Build' button in the S-Function Builder gives no errors, however, on compiling the generated files using
mex -v A465_Inverse_Kinematics.c A465_Inverse_Kinematics_wrapper.c
I get the following error:
Error using mex
Creating library A465_inverse_kinematics.lib and object A465_inverse_kinematics.exp
A465_inverse_kinematics_wrapper.obj : error LNK2019: unresolved external symbol
A465_world_to_joint referenced in function A465_inverse_kinematics_Outputs_wrapper
A465_inverse_kinematics.mexw64 : fatal error LNK1120: 1 unresolved externals
Any ideas what is going wrong? I have the 'A465_world_to_joint' function in the 'Inv_kin.c' source file. Thanks for the help!
(using MSVS2012, MATLAB R2015b, 64bit Windows 10)
0 Comments
Sign in to comment.