Mex - output error, Make file
2 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
James Tursa
on 23 Aug 2012
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.
More Answers (0)
See Also
Categories
Find more on Fortran with MATLAB 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!