how to add static link library to S function
Afficher commentaires plus anciens
I am creating block scheme i want to use hil sdk functions to controll qube servo 2 from for linux (ubuntu 20.4.)
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 ?
1 commentaire
Yavuzhan Erdem
le 2 Déc 2023
Hello Dear,
Have you solved the problem ? I have also same problem. Actualll, I can compile s-function and get output file with .mexwa extension. However , when I run the simulink mod el , Undefined symbol error occured.
Réponses (1)
Mark McBroom
le 20 Déc 2021
1 vote
When compiling and linking your s-function using the mex command, you can provide optional argument -L to link to a library.
You can also use the legacy_code tool or the C Caller Block to define your s-function and specify the names and locations of libraries that are to be linked with your s-function.
1 commentaire
Stefan Jakubjak
le 2 Jan 2022
Modifié(e) : Stefan Jakubjak
le 2 Jan 2022
Catégories
En savoir plus sur Configure Block Features for MATLAB S-Functions dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!