Mex - output error, Make file

1 次查看(过去 30 天)
Hello, I receive an error when trying to run my make file and wanted to see if anyone could spot what was wrong. The error I receive is
" Warning: -output ignored (no MEX-file is being created)."
My code is as follows:
NWTC_LIB = 'G:\Trial Aerodyn\NWTC';
WIND_LOC = 'G:\Trial Aerodyn\InflowWind';
AERODYN_LOC = 'G:\Trial Aerodyn';
mex('-c',...
'-f','intelf12msvs2010opts.bat', ...
'-output','aerodyngateway',...
[NWTC_LIB '\DoubPrec.f90' ], ...
[NWTC_LIB '\SysMatlab.f90' ], ...
[NWTC_LIB '\NWTC_IO.f90' ], ...
[NWTC_LIB '\NWTC_Num.f90' ], ...
[NWTC_LIB '\NWTC_Aero.f90' ], ...
[NWTC_LIB '\NWTC_Library.f90' ], ...
[AERODYN_LOC '\SharedTypes.f90' ], ...
[WIND_LOC '\SharedInflowDefs.f90' ], ...
[WIND_LOC '\UserWind.f90' ], ...
[WIND_LOC '\HHWind.f90' ], ...
[WIND_LOC '\HAWCWind.f90' ], ...
[WIND_LOC '\FFWind.f90' ], ...
[WIND_LOC '\FDWind.f90' ], ...
[WIND_LOC '\CTWind.f90' ], ...
[AERODYN_LOC '\AeroMods.f90' ], ...
[WIND_LOC '\InflowWindMod.f90' ], ...
[AERODYN_LOC '\GenSubs.f90' ], ...
[AERODYN_LOC '\AeroSubs.f90' ], ...
[AERODYN_LOC '\Aerodyn.f90' ], ...
'aerodyngateway.f90' );
disp('mex completed')
Everything compiles fine but no mex file is made.

采纳的回答

James Tursa
James Tursa 2012-8-23
That's because you have the '-c' option, which means compile-only. If you want to link into a mex routine get rid of this option in the mex command.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fortran with MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by