I try to compile the SVN version of dynare, but it does not work for mw.
Following the instruction in Dynare Wiki: http://www.dynare.org/DynareWiki/BuildingDlls, I run the build_matlab.m file. Below is the error message:
--> lcc -c -Zp8 -I"C:\JH\PROGRA~1\MATLAB\R2008B\sys\lcc\include" -DMATLAB_MEX_FILE -noregistrylookup -FoC:\DOCUME~1\ECONGRAD\LOCALS~1\TEMP\MEX_RK~1\isopenmp.obj -IC:\JH\PROGRA~1\MATLAB\R2008B\extern\include -IC:\JH\PROGRA~1\MATLAB\R2008B\simulink\include -DNDEBUG -DMX_COMPAT_32 C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc
Error C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc: 40 illegal statement termination
Error C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc: 40 skipping `double'
Error C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc: 40 undeclared identifier `z'
Error C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc: 40 type error: pointer expected
Warning C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc: 40 Statement has no effect
Error C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc: 41 operands of = have illegal types `int' and `pointer to double'
Error C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc: 44 type error: pointer expected
Error C:\JH\DYNARE~2\DYNARE~1\TRUNK\MEX\SOURCES\THREADS\isopenmp.cc: 48 type error: pointer expected
7 errors, 1 warnings
C:\JH\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: Compile of 'THREADS\isopenmp.cc' failed.
??? Error using ==> mex at 213
Unable to complete successfully.
Error in ==> build_matlab at 105
eval([ 'mex ' COMPILE_OPTIONS ' -outdir ' OUTPUT_DIR ' threads/isopenmp.cc '
]);
Furthermore, the compile of the binary file does not work well. Here is the link to the Wiki: http://www.dynare.org/DynareWiki/BuildingPreprocessor.
I type "make" under the same directory where the file "makefile" is . Unfortunately, the message in CYGWIN is too long and can't be copied. After the compilation, when I try running some .mod file, an error message pops up:
'"C:\JH\dynare_v4\dynare_v4_svn\trunk\matlab\dynare_m"' is not recognized as an internal or external command,
operable program or batch file.
??? Error using ==> dynare at 119
DYNARE: preprocessing failed
Does anyone know how to fix it?