The documentation section on "Host-Based Shared Library Limitations" under Real-Time Workshop Embedded Coder :
<http://www.mathworks.com/help/releases/R2015b/ecoder/ug/creating-and-using-host-based-shared-libraries.html#bq2nufb-1>
mentions:
On Windows systems, the ert_shrlib target by default does not generate or retain the .lib file for implicit linking (explicit linking is preferred for portability). You can change the default behavior and retain the .lib file by modifying the corresponding template makefile (TMF). If you do this, be aware that the generated model.h file will need a small modification to be used together with the generated ert_main.c for implicit linking. For example, if you are using the Microsoft Visual C++ development system, you will need to declare __declspec(dllimport) in front of all data to be imported implicitly from the shared library file.
I would like to know which TMF file needs to be modified, and how I modify the model header files.
Best Answer