I want to generate a mex file using the CasADi library.
However, I get an error that <function name> is undefined and cannot be referenced.
The error statement is as follows:
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0x18d): undefined reference to `osqp_update_lin_cost'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0x212): undefined reference to `osqp_update_bounds'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0x299): undefined reference to `osqp_update_P_A'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0x3a8): undefined reference to `osqp_warm_start_x'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0x3f1): undefined reference to `osqp_warm_start_y'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0x402): undefined reference to `osqp_solve'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0xcfa): undefined reference to
`osqp_set_default_settings'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0xdf6): undefined reference to `osqp_setup'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0xe74): undefined reference to `osqp_cleanup'
C:\Users\n\AppData\Local\Temp\mex_489471697093928_10400\test.obj:test.c:(.text+0xf44): undefined reference to `osqp_cleanup'
collect2.exe: error: ld returned 1 exit status
I would appreciate guidance on how to resolve it.