I am trying to integrate EposCommandLibrary(shared library for linux applications) from MaxonGroup with simulink environment. My main goal is to put some c++ code in s-function builder block with some functions of EPOSCommandLibrary, and then this code is going to be deployed in my beaglebone black board with Embedded Coder. But i am getting some errors because my simulink model is not recognizing EPOSCommandLibrary and its functions. When you compile from linux terminal(beaglebone) you need to use gcc main.cpp -lEposCmd. As you can see, i need this parameter in the gcc compile command. I was wondering if i can compile my c++ code in simulink with gcc and put manually this flag.
Thank you for reading this!