mex_C_win64 vs mingw64
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am having trouble executing mex files. Currently my compiler configurations looks like this:
>> mex.getCompilerConfigurations('C')
ans =
CompilerConfiguration with properties:
Name: 'MinGW64 Compiler (C)'
Manufacturer: 'GNU'
Language: 'C'
Version: '6.3.0'
Location: 'C:\MinGW8\mingw64'
ShortName: 'mingw64'
Priority: 'E'
Details: [1×1 mex.CompilerConfigurationDetails]
LinkerName: 'C:\MinGW8\mingw64\bin\gcc'
LinkerVersion: ''
MexOpt: 'C:\Users\<Username deducted>\AppData\Roaming\MathWorks\MATLAB\R2022b\mex_C_win64.xml'
However, other people in my organization mostly have MexOpt like so:
MexOpt: 'C:\Program Files\MATLAB\R2022b\bin\win64\mexopts\mingw64.xml'
Is it possible to align with others without manually editing compiler configs, if not how can I manually fix this?
0 commentaires
Réponses (1)
Suman
le 25 Juil 2024
Hi Cagri,
This CompilerConfiguration object give the details about the default compiler used by the mex command.
You can check for other MexOpts xml files available on your , you can run the "mex -setup C" command. It will show you the different MexOpts files available based on the installed compilers for that language as well as the command to set it to default. I'm not sure how the location of this file is decided, but it must be likely based on how the compiler was installed, whether through MATLAB support package or directly on your system.
If you do not see the same MexOpt file as your colleague, please remove the given compiler and do a reinstall the same way on both systems.
0 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Support for MinGW-w64 C/C++ Compiler dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!