Hi Xymbu,
As per my understanding of the question, the above command is being used to compile a MATLAB function file(InputTest.m) into a shared library named "InputTest" using the MATLAB compiler.
The "loadlibrary" function is being used to load the shared library and its associated header file("InputTest.h"). The command runs successfully depending on the availability of the header file "InputTest.dll" on the path and the correct association of the header file "InputTest.h" with the library.
The error message suggests that there was an issue while building the InputTest_thunk_pcwin64.dll library using the MinGW-w64 compiler. The error message also includes a warning related to the redefinition of DLL_EXPORT_SYM in the mclbase.h file.
Here are some of the troubleshooting steps you can follow to resolve the error:
- Check that the paths provided for the input files (InputTest.dll and InputTest.h) are located in the specified directories and accessible.
- If MATLAB function or the associated header file depends on external libraries, make sure that those libraries are correctly installed and accessible to the compiler.
- Check if the MATLAB Compiler version being used is compatible with the MATLAB version installed on your system. To check the compatibility you may use the "ver" command in the Command Prompt to display the MATLAB version along with all the toolboxes including MATLAB Compiler with their version.
ver
If none of the above steps work, then there might be more relevant information further down the error log. Review the complete error message to see if there are any additional details or specific errors that can help identify the problem.
Please refer to the following "loadlibrary" documentation for better understanding of the function.
Hope this helps!
Thank You
Maneet Bagga