Does MinGW compiler from Add-Ons on MATLAB cause any problem with MinGW on system?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I already have MinGW-w64 on my computer. If I install the MinGW-w64 compiler from Add-Ons on MATLAB, do these two interfer with each other?
0 Commenti
Risposte (1)
Rishita
il 15 Lug 2022
You can test the MinGW® compiler by building the yprime.c example. Copy the source file to a writable folder.
copyfile(fullfile(matlabroot,'extern','examples','mex','yprime.c'),'.','f')
If you only have the MinGW compiler installed on your system, the mex command automatically chooses MinGW. Go to the next step. However, if you have multiple C or C++ compilers, use mex -setup to choose MinGW.
mex -setup
Build the MEX file.
mex yprime.c
MATLAB displays a “Building with” message showing what compiler was used to build the MEX file.
Run the function.
yprime(1,1:4)
Vedere anche
Categorie
Scopri di più su MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!