'how to add static link library to S function in matlab/simulink

I am creating block scheme i want to use hil_sdk functions to control qube_servo_2 from linux-ubuntu 20.4.https://github.com/quanser/hil_sdk_linux_x86_64 These functions should be only c functions. I created S-function but i can't link .a static link library and .h How can it be done? I did copy .h files to folder and it seems to work but i can't link .a file. I am new to Matlab, am i doing it right ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source