Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
MichelJuillard
dynare
Commits
1cd2df56
Commit
1cd2df56
authored
Jun 18, 2015
by
Houtan Bastani
Browse files
Merge pull request #956 from JohannesPfeifer/dyn_mex_windows
Fix bugs in dyn_mex.m under Windows
parents
73e1ddf7
c39331d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/utilities/general/dyn_mex.m
View file @
1cd2df56
...
...
@@ -47,11 +47,11 @@ end
if
~
exist
(
'OCTAVE_VERSION'
)
% Some mex commands are enclosed in an eval(), because otherwise it will make Octave fail
if
ispc
if
msvc
if
strcmp
(
win_compiler
,
'
msvc
'
)
% 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:
Dynam
ic" '
basename
'_static.c '
basename
'_static_mex.c'
])
elseif
cygwin
eval
([
'mex -O LINKFLAGS="$LINKFLAGS /export:
Stat
ic" '
basename
'_static.c '
basename
'_static_mex.c'
])
elseif
strcmp
(
win_compiler
,
'
cygwin
'
)
% MATLAB/Windows + Cygwin g++
eval
([
'mex -O PRELINK_CMDS1="echo EXPORTS > mex.def & echo '
...
'mexFunction >> mex.def & echo Dynamic >> mex.def" '
...
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment