How to recompile the parser?

Dear all:

I want to run Matlab on unix and I have no clue how to recompile the parser. Can somebody help?

Best

Ricardo

Look at the makefile in parser.src

Kind regards

Michel

Ricardo:
I have run into a similar problem. The Makefile, if you are not familiar to C, is not very informative. I have managed to compile dynare.c file but here is what I get:

bash-2.05$ gcc -Wall -g -c -I/… dynare.c -DMATLAB
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functioncopy_update_indexed_var’:
dynare.c:1652: warning: embedded \0' in format dynare.c:1656: warning: embedded\0’ in format
dynare.c:1694: warning: embedded `\0’ in format
bash-2.05$ ls
d.h d_tab.c #dynare.c# dyn.l makefile
d_ll.c d_tab.h dynare.c #makefile# mymakefile
d.output d.y dynare.o makefile~
bash-2.05$ chmod 777 *.o
bash-2.05$ dynare.o
bash: dynare.o: command not found
bash-2.05$ ./dynare.o
bash: ./dynare.o: cannot execute binary file

I don’t know if you managed to sort out this problem… So far I am not able to execute dynare in Solaris 9 on a Sparc. Any clue of what might be going on?

is only one of the instructions that need to be ran.

At the shell prompt, just type 'make’
this will run the make file and execute all the required instructions.

The warnings that you are getting are harmless and expected.

Please report any error that you get while running ‘make’

Best

Michel

Michel:
thanks for your answer. In the makefile I have replaced:

  • the -mno-cygwin option
  • the flex command by lex (flex is a Linux command and lex is its equivalent in Solaris)
    and the output is below. Thanks again for your help!

make -k
gcc -g -c dynare.c -o dynare_m.o -DMATLAB -Wall #-DDEBUG
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functioncopy_update_indexed_var’:
dynare.c:1652: warning: embedded \0' in format dynare.c:1656: warning: embedded\0’ in format
dynare.c:1694: warning: embedded \0' in format gcc -g -c -DYYDEBUG=1 d_tab.c gcc -g -c d_ll.c make: Warning: Don't know how to make targetprecompiler.cc
make: Warning: Don’t know how to make target precompiler.hh' gcc -g -c dynare.c -o dynare_s.o -DSCILAB -Wall dynare.c: In functionmain’:
dynare.c:82: warning: unused variable buffer' dynare.c: In functionadd_var_range’:
dynare.c:234: warning: embedded \0' in format dynare.c: In functionm_del’:
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function p_histval': dynare.c:740: warning: unused variablebuffer’
dynare.c: In function p_i_shocks': dynare.c:1341: warning: unused variablebuff’
dynare.c: In function copy_update_indexed_var': dynare.c:1652: warning: embedded\0’ in format
dynare.c:1656: warning: embedded \0' in format dynare.c:1694: warning: embedded\0’ in format
gcc -g -o dynare_s.exe dynare_s.o d_tab.o d_ll.o
Undefined first referenced
symbol in file
compile_endif d_tab.o
compile_define d_tab.o
compile_elseif d_tab.o
compile_else d_tab.o
compile_if d_tab.o
ld: fatal: Symbol referencing errors. No output written to dynare_s.exe
collect2: ld returned 1 exit status
*** Error code 1
gcc -g -c dynare.c -o dynare_g.o -DGAUSS -Wall #-DDEBUG
dynare.c: In function main': dynare.c:82: warning: unused variablebuffer’
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functionprint_recur’:
dynare.c:958: error: parse error before ‘<’ token
dynare.c: At top level:
dynare.c:968: error: parse error before ‘}’ token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to int' in declaration ofstr_output’
dynare.c:969: error: conflicting types for str_output' dynare.c:69: error: previous declaration ofstr_output’
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to int' in declaration ofsprintf’
dynare.c:994: warning: conflicting types for built-in function sprintf' dynare.c:994: warning: data definition has no type or storage class dynare.c:995: warning: type defaults toint’ in declaration of str_output' dynare.c:995: warning: parameter names (without types) in function declaration dynare.c:995: warning: data definition has no type or storage class dynare.c:996: error: parse error before '}' token dynare.c:1000: error: conflicting types forstr_output’
dynare.c:995: error: previous declaration of str_output' dynare.c: In functionp_i_shocks’:
dynare.c:1341: warning: unused variable buff' dynare.c: In functionp_e_shocks’:
dynare.c:1360: warning: unused variable buffer' dynare.c: In functionprint_param’:
dynare.c:1754: warning: unused variable i' dynare.c: In functionp_stoch_simul’:
dynare.c:1776: warning: unused variable buffer' dynare.c:1777: warning: unused variablei’
dynare.c: In function p_irf': dynare.c:1876: warning: unused variablei’
dynare.c: In function p_disp_dr': dynare.c:1950: warning: unused variablei’
dynare.c: In function p_disp_moments': dynare.c:1983: warning: unused variablei’
dynare.c: In function p_calib_init': dynare.c:2159: warning: unused variablei’
dynare.c:2160: warning: unused variable buffer' dynare.c: In functionp_dynatype’:
dynare.c:2276: warning: unused variable i' dynare.c: In functionp_dynasave’:
dynare.c:2338: warning: unused variable i' dynare.c: In functionp_sigma_e’:
dynare.c:2399: warning: unused variable up' dynare.c:2399: warning: unused variablei’
dynare.c:2399: warning: unused variable j' dynare.c:2399: warning: unused variablei1’
dynare.c:2399: warning: unused variable j1' dynare.c:2399: warning: unused variablep1’
dynare.c:2399: warning: unused variable p2' dynare.c:2400: warning: unused variableorder’
dynare.c:2401: warning: unused variable po' dynare.c:2402: warning: unused variablep_q1’
dynare.c: In function p_osr': dynare.c:2519: warning: unused variablebuffer’
dynare.c:2520: warning: unused variable i' dynare.c: In functionp_olr’:
dynare.c:2564: warning: unused variable buffer' dynare.c:2565: warning: unused variablei’
dynare.c: In function p_estimation': dynare.c:2967: warning: unused variablebuffer’
dynare.c:2968: warning: unused variable i' dynare.c: In functionp_forecast’:
dynare.c:3143: warning: unused variable buffer' dynare.c:3144: warning: unused variablei’
*** Error code 1
gcc -g -c dynare.c -o dynare_OxPro.o -DGAUSS -DOXGAUSS -Wall
dynare.c: In function main': dynare.c:82: warning: unused variablebuffer’
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functionprint_recur’:
dynare.c:958: error: parse error before ‘<’ token
dynare.c: At top level:
dynare.c:968: error: parse error before ‘}’ token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to int' in declaration ofstr_output’
dynare.c:969: error: conflicting types for str_output' dynare.c:69: error: previous declaration ofstr_output’
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to int' in declaration ofsprintf’
dynare.c:994: warning: conflicting types for built-in function sprintf' dynare.c:994: warning: data definition has no type or storage class dynare.c:995: warning: type defaults toint’ in declaration of str_output' dynare.c:995: warning: parameter names (without types) in function declaration dynare.c:995: warning: data definition has no type or storage class dynare.c:996: error: parse error before '}' token dynare.c:1000: error: conflicting types forstr_output’
dynare.c:995: error: previous declaration of str_output' dynare.c: In functionp_i_shocks’:
dynare.c:1341: warning: unused variable buff' dynare.c: In functionp_e_shocks’:
dynare.c:1360: warning: unused variable buffer' dynare.c: In functionprint_param’:
dynare.c:1754: warning: unused variable i' dynare.c: In functionp_stoch_simul’:
dynare.c:1776: warning: unused variable buffer' dynare.c:1777: warning: unused variablei’
dynare.c: In function p_irf': dynare.c:1876: warning: unused variablei’
dynare.c: In function p_disp_dr': dynare.c:1950: warning: unused variablei’
dynare.c: In function p_disp_moments': dynare.c:1983: warning: unused variablei’
dynare.c: In function p_calib_init': dynare.c:2159: warning: unused variablei’
dynare.c:2160: warning: unused variable buffer' dynare.c: In functionp_dynatype’:
dynare.c:2276: warning: unused variable i' dynare.c: In functionp_dynasave’:
dynare.c:2338: warning: unused variable i' dynare.c: In functionp_sigma_e’:
dynare.c:2399: warning: unused variable up' dynare.c:2399: warning: unused variablei’
dynare.c:2399: warning: unused variable j' dynare.c:2399: warning: unused variablei1’
dynare.c:2399: warning: unused variable j1' dynare.c:2399: warning: unused variablep1’
dynare.c:2399: warning: unused variable p2' dynare.c:2400: warning: unused variableorder’
dynare.c:2401: warning: unused variable po' dynare.c:2402: warning: unused variablep_q1’
dynare.c: In function p_osr': dynare.c:2519: warning: unused variablebuffer’
dynare.c:2520: warning: unused variable i' dynare.c: In functionp_olr’:
dynare.c:2564: warning: unused variable buffer' dynare.c:2565: warning: unused variablei’
dynare.c: In function p_estimation': dynare.c:2967: warning: unused variablebuffer’
dynare.c:2968: warning: unused variable i' dynare.c: In functionp_forecast’:
dynare.c:3143: warning: unused variable buffer' dynare.c:3144: warning: unused variablei’
*** Error code 1
gcc -g -c dynare.c -o dynare_Oxcons.o -DGAUSS -DOXGAUSS -DOXGAUSS_GNU -Wall
dynare.c: In function main': dynare.c:82: warning: unused variablebuffer’
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functionprint_recur’:
dynare.c:958: error: parse error before ‘<’ token
dynare.c: At top level:
dynare.c:968: error: parse error before ‘}’ token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to int' in declaration ofstr_output’
dynare.c:969: error: conflicting types for str_output' dynare.c:69: error: previous declaration ofstr_output’
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to int' in declaration ofsprintf’
dynare.c:994: warning: conflicting types for built-in function sprintf' dynare.c:994: warning: data definition has no type or storage class dynare.c:995: warning: type defaults toint’ in declaration of str_output' dynare.c:995: warning: parameter names (without types) in function declaration dynare.c:995: warning: data definition has no type or storage class dynare.c:996: error: parse error before '}' token dynare.c:1000: error: conflicting types forstr_output’
dynare.c:995: error: previous declaration of str_output' dynare.c: In functionp_i_shocks’:
dynare.c:1341: warning: unused variable buff' dynare.c: In functionp_e_shocks’:
dynare.c:1360: warning: unused variable buffer' dynare.c: In functionprint_param’:
dynare.c:1754: warning: unused variable i' dynare.c: In functionp_stoch_simul’:
dynare.c:1776: warning: unused variable buffer' dynare.c:1777: warning: unused variablei’
dynare.c: In function p_irf': dynare.c:1876: warning: unused variablei’
dynare.c: In function p_disp_dr': dynare.c:1950: warning: unused variablei’
dynare.c: In function p_disp_moments': dynare.c:1983: warning: unused variablei’
dynare.c: In function p_calib_init': dynare.c:2159: warning: unused variablei’
dynare.c:2160: warning: unused variable buffer' dynare.c: In functionp_dynatype’:
dynare.c:2276: warning: unused variable i' dynare.c: In functionp_dynasave’:
dynare.c:2338: warning: unused variable i' dynare.c: In functionp_sigma_e’:
dynare.c:2399: warning: unused variable up' dynare.c:2399: warning: unused variablei’
dynare.c:2399: warning: unused variable j' dynare.c:2399: warning: unused variablei1’
dynare.c:2399: warning: unused variable j1' dynare.c:2399: warning: unused variablep1’
dynare.c:2399: warning: unused variable p2' dynare.c:2400: warning: unused variableorder’
dynare.c:2401: warning: unused variable po' dynare.c:2402: warning: unused variablep_q1’
dynare.c: In function p_osr': dynare.c:2519: warning: unused variablebuffer’
dynare.c:2520: warning: unused variable i' dynare.c: In functionp_olr’:
dynare.c:2564: warning: unused variable buffer' dynare.c:2565: warning: unused variablei’
dynare.c: In function p_estimation': dynare.c:2967: warning: unused variablebuffer’
dynare.c:2968: warning: unused variable i' dynare.c: In functionp_forecast’:
dynare.c:3143: warning: unused variable buffer' dynare.c:3144: warning: unused variablei’
*** Error code 1
make: Warning: Target `all’ not remade because of errors

Compilation exited abnormally with code 1 at Wed Aug 2 14:19:09

Hi Franz,

I realize that the makefile is messy, lots of useless things for most people. Sorry about that.

Also, there were two files precompiler.cc and precompiler.hh missing from the zip file. I have updated dyn_parser_v3_064.zip on the server, could you download it again?

In order to get what you want, it is enough to do make -k dynare_m.exe

You can also rename dynare_m.exe into dynare_m to make it more like a Unix executable. Change dynare.m accordingly

Kind regards

Michel

Oops, I apologize for a mistake: I replaced the first line for:
all: dynare_m.o dynare_s.exe dynare_g.exe dynare_OxPro.exe dynare_Oxcons.exe
and here is what I got:

make -k
gcc -g -c dynare.c -o dynare_m.o -DMATLAB -Wall #-DDEBUG
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functioncopy_update_indexed_var’:
dynare.c:1652: warning: embedded \0' in format dynare.c:1656: warning: embedded\0’ in format
dynare.c:1694: warning: embedded \0' in format gcc -g -c dynare.c -o dynare_s.o -DSCILAB -Wall dynare.c: In functionmain’:
dynare.c:82: warning: unused variable buffer' dynare.c: In functionadd_var_range’:
dynare.c:234: warning: embedded \0' in format dynare.c: In functionm_del’:
dynare.c:369: warning: control reaches end of non-void function
dynare.c: In function p_histval': dynare.c:740: warning: unused variablebuffer’
dynare.c: In function p_i_shocks': dynare.c:1341: warning: unused variablebuff’
dynare.c: In function copy_update_indexed_var': dynare.c:1652: warning: embedded\0’ in format
dynare.c:1656: warning: embedded \0' in format dynare.c:1694: warning: embedded\0’ in format
gcc -g -c -DYYDEBUG=1 d_tab.c
gcc -g -c d_ll.c
gcc -g -o dynare_s.exe dynare_s.o d_tab.o d_ll.o
Undefined first referenced
symbol in file
compile_endif d_tab.o
compile_define d_tab.o
compile_elseif d_tab.o
compile_else d_tab.o
compile_if d_tab.o
ld: fatal: Symbol referencing errors. No output written to dynare_s.exe
collect2: ld returned 1 exit status
*** Error code 1
gcc -g -c dynare.c -o dynare_g.o -DGAUSS -Wall #-DDEBUG
dynare.c: In function main': dynare.c:82: warning: unused variablebuffer’
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functionprint_recur’:
dynare.c:958: error: parse error before ‘<’ token
dynare.c: At top level:
dynare.c:968: error: parse error before ‘}’ token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to int' in declaration ofstr_output’
dynare.c:969: error: conflicting types for str_output' dynare.c:69: error: previous declaration ofstr_output’
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to int' in declaration ofsprintf’
dynare.c:994: warning: conflicting types for built-in function sprintf' dynare.c:994: warning: data definition has no type or storage class dynare.c:995: warning: type defaults toint’ in declaration of str_output' dynare.c:995: warning: parameter names (without types) in function declaration dynare.c:995: warning: data definition has no type or storage class dynare.c:996: error: parse error before '}' token dynare.c:1000: error: conflicting types forstr_output’
dynare.c:995: error: previous declaration of str_output' dynare.c: In functionp_i_shocks’:
dynare.c:1341: warning: unused variable buff' dynare.c: In functionp_e_shocks’:
dynare.c:1360: warning: unused variable buffer' dynare.c: In functionprint_param’:
dynare.c:1754: warning: unused variable i' dynare.c: In functionp_stoch_simul’:
dynare.c:1776: warning: unused variable buffer' dynare.c:1777: warning: unused variablei’
dynare.c: In function p_irf': dynare.c:1876: warning: unused variablei’
dynare.c: In function p_disp_dr': dynare.c:1950: warning: unused variablei’
dynare.c: In function p_disp_moments': dynare.c:1983: warning: unused variablei’
dynare.c: In function p_calib_init': dynare.c:2159: warning: unused variablei’
dynare.c:2160: warning: unused variable buffer' dynare.c: In functionp_dynatype’:
dynare.c:2276: warning: unused variable i' dynare.c: In functionp_dynasave’:
dynare.c:2338: warning: unused variable i' dynare.c: In functionp_sigma_e’:
dynare.c:2399: warning: unused variable up' dynare.c:2399: warning: unused variablei’
dynare.c:2399: warning: unused variable j' dynare.c:2399: warning: unused variablei1’
dynare.c:2399: warning: unused variable j1' dynare.c:2399: warning: unused variablep1’
dynare.c:2399: warning: unused variable p2' dynare.c:2400: warning: unused variableorder’
dynare.c:2401: warning: unused variable po' dynare.c:2402: warning: unused variablep_q1’
dynare.c: In function p_osr': dynare.c:2519: warning: unused variablebuffer’
dynare.c:2520: warning: unused variable i' dynare.c: In functionp_olr’:
dynare.c:2564: warning: unused variable buffer' dynare.c:2565: warning: unused variablei’
dynare.c: In function p_estimation': dynare.c:2967: warning: unused variablebuffer’
dynare.c:2968: warning: unused variable i' dynare.c: In functionp_forecast’:
dynare.c:3143: warning: unused variable buffer' dynare.c:3144: warning: unused variablei’
*** Error code 1
gcc -g -c dynare.c -o dynare_OxPro.o -DGAUSS -DOXGAUSS -Wall
dynare.c: In function main': dynare.c:82: warning: unused variablebuffer’
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functionprint_recur’:
dynare.c:958: error: parse error before ‘<’ token
dynare.c: At top level:
dynare.c:968: error: parse error before ‘}’ token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to int' in declaration ofstr_output’
dynare.c:969: error: conflicting types for str_output' dynare.c:69: error: previous declaration ofstr_output’
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to int' in declaration ofsprintf’
dynare.c:994: warning: conflicting types for built-in function sprintf' dynare.c:994: warning: data definition has no type or storage class dynare.c:995: warning: type defaults toint’ in declaration of str_output' dynare.c:995: warning: parameter names (without types) in function declaration dynare.c:995: warning: data definition has no type or storage class dynare.c:996: error: parse error before '}' token dynare.c:1000: error: conflicting types forstr_output’
dynare.c:995: error: previous declaration of str_output' dynare.c: In functionp_i_shocks’:
dynare.c:1341: warning: unused variable buff' dynare.c: In functionp_e_shocks’:
dynare.c:1360: warning: unused variable buffer' dynare.c: In functionprint_param’:
dynare.c:1754: warning: unused variable i' dynare.c: In functionp_stoch_simul’:
dynare.c:1776: warning: unused variable buffer' dynare.c:1777: warning: unused variablei’
dynare.c: In function p_irf': dynare.c:1876: warning: unused variablei’
dynare.c: In function p_disp_dr': dynare.c:1950: warning: unused variablei’
dynare.c: In function p_disp_moments': dynare.c:1983: warning: unused variablei’
dynare.c: In function p_calib_init': dynare.c:2159: warning: unused variablei’
dynare.c:2160: warning: unused variable buffer' dynare.c: In functionp_dynatype’:
dynare.c:2276: warning: unused variable i' dynare.c: In functionp_dynasave’:
dynare.c:2338: warning: unused variable i' dynare.c: In functionp_sigma_e’:
dynare.c:2399: warning: unused variable up' dynare.c:2399: warning: unused variablei’
dynare.c:2399: warning: unused variable j' dynare.c:2399: warning: unused variablei1’
dynare.c:2399: warning: unused variable j1' dynare.c:2399: warning: unused variablep1’
dynare.c:2399: warning: unused variable p2' dynare.c:2400: warning: unused variableorder’
dynare.c:2401: warning: unused variable po' dynare.c:2402: warning: unused variablep_q1’
dynare.c: In function p_osr': dynare.c:2519: warning: unused variablebuffer’
dynare.c:2520: warning: unused variable i' dynare.c: In functionp_olr’:
dynare.c:2564: warning: unused variable buffer' dynare.c:2565: warning: unused variablei’
dynare.c: In function p_estimation': dynare.c:2967: warning: unused variablebuffer’
dynare.c:2968: warning: unused variable i' dynare.c: In functionp_forecast’:
dynare.c:3143: warning: unused variable buffer' dynare.c:3144: warning: unused variablei’
*** Error code 1
gcc -g -c dynare.c -o dynare_Oxcons.o -DGAUSS -DOXGAUSS -DOXGAUSS_GNU -Wall
dynare.c: In function main': dynare.c:82: warning: unused variablebuffer’
dynare.c: In function add_var_range': dynare.c:234: warning: embedded\0’ in format
dynare.c: In function m_del': dynare.c:369: warning: control reaches end of non-void function dynare.c: In functionp_histval’:
dynare.c:740: warning: unused variable buffer' dynare.c: In functionprint_recur’:
dynare.c:958: error: parse error before ‘<’ token
dynare.c: At top level:
dynare.c:968: error: parse error before ‘}’ token
dynare.c:969: error: parse error before string constant
dynare.c:969: warning: type defaults to int' in declaration ofstr_output’
dynare.c:969: error: conflicting types for str_output' dynare.c:69: error: previous declaration ofstr_output’
dynare.c:969: warning: data definition has no type or storage class
dynare.c:994: error: parse error before string constant
dynare.c:994: warning: type defaults to int' in declaration ofsprintf’
dynare.c:994: warning: conflicting types for built-in function sprintf' dynare.c:994: warning: data definition has no type or storage class dynare.c:995: warning: type defaults toint’ in declaration of str_output' dynare.c:995: warning: parameter names (without types) in function declaration dynare.c:995: warning: data definition has no type or storage class dynare.c:996: error: parse error before '}' token dynare.c:1000: error: conflicting types forstr_output’
dynare.c:995: error: previous declaration of str_output' dynare.c: In functionp_i_shocks’:
dynare.c:1341: warning: unused variable buff' dynare.c: In functionp_e_shocks’:
dynare.c:1360: warning: unused variable buffer' dynare.c: In functionprint_param’:
dynare.c:1754: warning: unused variable i' dynare.c: In functionp_stoch_simul’:
dynare.c:1776: warning: unused variable buffer' dynare.c:1777: warning: unused variablei’
dynare.c: In function p_irf': dynare.c:1876: warning: unused variablei’
dynare.c: In function p_disp_dr': dynare.c:1950: warning: unused variablei’
dynare.c: In function p_disp_moments': dynare.c:1983: warning: unused variablei’
dynare.c: In function p_calib_init': dynare.c:2159: warning: unused variablei’
dynare.c:2160: warning: unused variable buffer' dynare.c: In functionp_dynatype’:
dynare.c:2276: warning: unused variable i' dynare.c: In functionp_dynasave’:
dynare.c:2338: warning: unused variable i' dynare.c: In functionp_sigma_e’:
dynare.c:2399: warning: unused variable up' dynare.c:2399: warning: unused variablei’
dynare.c:2399: warning: unused variable j' dynare.c:2399: warning: unused variablei1’
dynare.c:2399: warning: unused variable j1' dynare.c:2399: warning: unused variablep1’
dynare.c:2399: warning: unused variable p2' dynare.c:2400: warning: unused variableorder’
dynare.c:2401: warning: unused variable po' dynare.c:2402: warning: unused variablep_q1’
dynare.c: In function p_osr': dynare.c:2519: warning: unused variablebuffer’
dynare.c:2520: warning: unused variable i' dynare.c: In functionp_olr’:
dynare.c:2564: warning: unused variable buffer' dynare.c:2565: warning: unused variablei’
dynare.c: In function p_estimation': dynare.c:2967: warning: unused variablebuffer’
dynare.c:2968: warning: unused variable i' dynare.c: In functionp_forecast’:
dynare.c:3143: warning: unused variable buffer' dynare.c:3144: warning: unused variablei’
*** Error code 1
make: Warning: Target `all’ not remade because of errors

Compilation exited abnormally with code 1 at Wed Aug 2 14:34:42

You don’t want to remake all the different configuration. The only thing that you want is
dynare_m.exe
and that requires
d_tab.h d_tab.c (created by bison)
d_ll.c (created by (f)lex)
dynare_m.o precompiler.o d_tab.o d_ll.o

Best

Michel

Thanks Michel. What confuses me is the extension .exe since I am running solaris on a sparc machine. I guess this is irrelevant…One final thing, I tried to download the parser*.zip and I get the message: “the document is being edited/updated by an user and is unavailable at this moment.” I will wait for your updates. Thanks again, you are very kind!!!

Dear Franz,

for some reason I only see your message now.

  1. whenever you have dynare_m.exe, you can substitute dynare_m (but be systematical!)

  2. sorry about the archive, I had forgotten to close it properly. You should be able to download it now.

Best

Michel

Thanks Michel! I was able to recompile the parser. Anyone interested in the dynare_m binary file please send me an email. Two important things that people (at least unix newbies like me) might want to know when recompiling in Solaris (I used Solaris 9):

  1. erase the cygwin option
  2. replace bison by yacc and flex by lex.
    Dynare runs nicely in unix!
    Best regards,
    Franz