Why is MATLAB compiling in alphanumeric order
1 view (last 30 days)
Show older comments
I have a MATLAB file which is just compiles a some FORTRAN files via mex. I'm using the Intel 2015 FORTRAN compiler. For some reason the MATLAB chooses to compile the files in alphabumeric order which screws up the compilation. When it starts the it lists all the linking it has to do
CMDLINE100_0 : ifort /c -I"C:\Program Files (x86)\MATLAB\R2014b\extern\include" /Qprec /nologo /fp:source /Qvc9 /assume:byterecl /traceback /real_size:64 /Qsave /Qzero /FoC:\Users\AFE\AppData\Local\Temp\mex_4907109153662_4024\DoubPrec.obj /O2 /DNDEBUG C:\Users\AFE\Documents\DEIF\FAST_v7\FAST_Install\Source\DoubPrec.f90
CMDLINE100_1 : ifort /c -I"C:\Program Files (x86)\MATLAB\R2014b\extern\include" /Qprec /nologo /fp:source /Qvc9 /assume:byterecl /traceback /real_size:64 /Qsave /Qzero /FoC:\Users\AFE\AppData\Local\Temp\mex_4907109153662_4024\SysMatlab_Intel.obj /O2 /DNDEBUG C:\Users\AFE\Documents\DEIF\FAST_v7\FAST_Install\Source\SysMatlab_Intel.f90
CMDLINE100_2 : ifort /c -I"C:\Program Files (x86)\MATLAB\R2014b\extern\include" /Qprec /nologo /fp:source /Qvc9 /assume:byterecl /traceback /real_size:64 /Qsave /Qzero /FoC:\Users\AFE\AppData\Local\Temp\mex_4907109153662_4024\CTWind.obj /O2 /DNDEBUG C:\Users\AFE\Documents\DEIF\FAST_v7\FAST_Install\Source\CTWind.f90
CMDLINE100_3 : ifort /c -I"C:\Program Files (x86)\MATLAB\R2014b\extern\include" /Qprec /nologo /fp:source /Qvc9 /assume:byterecl /traceback /real_size:64 /Qsave /Qzero /FoC:\Users\AFE\AppData\Local\Temp\mex_4907109153662_4024\FFTMod.obj /O2 /DNDEBUG C:\Users\AFE\Documents\DEIF\FAST_v7\FAST_Install\Source\FFTMod.f90
CMDLINE100_4 : ifort /c -I"C:\Program Files (x86)\MATLAB\R2014b\extern\include" /Qprec /nologo /fp:source /Qvc9 /assume:byterecl /traceback /real_size:64 /Qsave /Qzero /FoC:\Users\AFE\AppData\Local\Temp\mex_4907109153662_4024\FASTSimulink.obj /O2 /DNDEBUG C:\Users\AFE\Documents\DEIF\FAST_v7\FAST_Install\Simulink\Source\FASTSimulink.f90 . . . etc.
Then it starts the compilation but compiles in the order _0, _1, _10, _11, e.g. alphanumeric. Why does it do that and how do I prevent it from it doing it?
0 Comments
Answers (0)
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!