Hi George,
- Do we have a working and tested Dynare++ build environment for both Linux
and Windows binaries a) under Linux
not really, Ondra's makefile makes assumption about the location of LAPACK that needs to be changed by hand. I was able to recompile dynare++ on Linux a year ago.
b) under MingW/cygwin Windows?
same for Windows, plus maybe additional issues related to Windows. I haven't recompiled dynare++ for Windows in several years.
- I have had a rather taxing (sometimes interesting) time trying to
re-build dynare++ on my Windows machine.
In a false expectations that I am just minutes from compiling Dynare ++, and, after so spending days of installing the whole dynare dev environment as suggested at the Dynare++ page ( lapack, cygwin, pthreads and MingW for window ) and recompiling and rebuilding Atlas library (which itself took approx. a day), going all the time forensically, two steps forward and one backward, I hit a few new problems. E.g.:
If I try to compile Dynare++ using MinGW gcc as recommended at the Dynare++ site, it seems to ignore both, the include and library paths specified with either CPATH, LD_LIBRARY_PATH or with individual options -I or -L or -isystem and, e.g. can not find the pthread.h (or the libcatlas libraries) that cygwin gcc (or cc) successfully finds, compiles and links using specified -I and -L options respectively (even with MingW ld).
Does anyone know a solution to this? (Note: ignorance of -L paths was noticed when I tired to link files successfully compiled with cygwin cc using MinGW )
I don't know if it is the issue, but the libraries must be compiled twice separately for cygwin and MingW
- Also, with building Dynare++ itself: (using cygwin gcc), among other
problems, to be able to compile all files, as a temporary fix, I had to rename one of its functions (gettimeofday() in journal.cpp, by adding prefix D_ ) as it conflicts with a function of the same name in MingW's sys/time.h and same number of parameters.
I think that there is comments from Ondra about that, but I don't remember where.
Best,
Michel
Best regards
George
Dev mailing list Dev@dynare.org http://www.dynare.org/cgi-bin/mailman/listinfo/dev