how to integrate installed minGW64 to matlab

I have minGW installed on my local disc c but i can't use mex file on MATLAB when using s-function builder block

4 Comments

Was the mex compiled with minGW or with Visual Studios ? I have seen a report that the two are not compatible for libraries.
I did install the minGW alone. I haven't touch the Visual Studio. All what i want to do is to bring arduino library into matlab using S-function.
arduino libraries live on arduino I believe. As far as I understand, they are not something you can use directly from an S function. There is a possible exception if you are intending to do code generation so that the resulting model is to be run on arduino, but in that case you would not use a mex file and you would (I gather) need to start using TLC files.
When tried building the s-function after pasting the arduino library i want to use, the error that pops up ask me to instal minGW of which i did but still error persisting. I will try with the TLC files as u have suggested. Thanks for your concern.

Sign in to comment.

Answers (0)

Tags

Asked:

on 31 Dec 2017

Commented:

on 7 Jan 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!