Mex - output error, Make file

조회 수: 7 (최근 30일)
Chris
Chris 2012년 8월 23일
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.
  댓글 수: 1
Chris
Chris 2012년 8월 23일
Thanks James. It works now.

댓글을 달려면 로그인하십시오.

추가 답변 (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