mex_C_win64 vs mingw64
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Suman
on 25 Jul 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 Comments
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!