Filter löschen
Filter löschen

Mex - output error, Make file

1 Ansicht (letzte 30 Tage)
Chris
Chris am 23 Aug. 2012
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.

Akzeptierte Antwort

James Tursa
James Tursa am 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.
  1 Kommentar
Chris
Chris am 23 Aug. 2012
Thanks James. It works now.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Fortran with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by