Fix bugs in dyn_mex.m under Windows
Fixes string comparison and copy and paste error.time-shift
parent
e07607011c
commit
c39331d526
|
@ -47,11 +47,11 @@ end
|
||||||
if ~exist('OCTAVE_VERSION')
|
if ~exist('OCTAVE_VERSION')
|
||||||
% Some mex commands are enclosed in an eval(), because otherwise it will make Octave fail
|
% Some mex commands are enclosed in an eval(), because otherwise it will make Octave fail
|
||||||
if ispc
|
if ispc
|
||||||
if msvc
|
if strcmp(win_compiler,'msvc')
|
||||||
% MATLAB/Windows + Microsoft Visual C++
|
% MATLAB/Windows + Microsoft Visual C++
|
||||||
eval(['mex -O LINKFLAGS="$LINKFLAGS /export:Dynamic" ' basename '_dynamic.c ' basename '_dynamic_mex.c'])
|
eval(['mex -O LINKFLAGS="$LINKFLAGS /export:Dynamic" ' basename '_dynamic.c ' basename '_dynamic_mex.c'])
|
||||||
eval(['mex -O LINKFLAGS="$LINKFLAGS /export:Dynamic" ' basename '_static.c ' basename '_static_mex.c'])
|
eval(['mex -O LINKFLAGS="$LINKFLAGS /export:Static" ' basename '_static.c ' basename '_static_mex.c'])
|
||||||
elseif cygwin
|
elseif strcmp(win_compiler,'cygwin')
|
||||||
% MATLAB/Windows + Cygwin g++
|
% MATLAB/Windows + Cygwin g++
|
||||||
eval(['mex -O PRELINK_CMDS1="echo EXPORTS > mex.def & echo ' ...
|
eval(['mex -O PRELINK_CMDS1="echo EXPORTS > mex.def & echo ' ...
|
||||||
'mexFunction >> mex.def & echo Dynamic >> mex.def" ' ...
|
'mexFunction >> mex.def & echo Dynamic >> mex.def" ' ...
|
||||||
|
|
Loading…
Reference in New Issue