I am modifying Dynare for the purposes of a modelling project. Currently I would like to invoke functions from MATIO library in my modified preprocessor code.
Without changing the Makefile, building the preprocessor is failing for me. I am getting errors of the kind “undefined reference to Mat_CreateVer”.
The problem is neither with the modified code nor with MATIO installation. I wrote some test code invoking MATIO, which builds (using qmake) and runs as a standalone executable just fine. I also successfully rebuilt the preprocessor with dynare++ option.
I suspected the need to modify the Makefile, which does not have references to matio objects. The ax_matio.m4 Autotools script suggests that this could be done by configuring with the flag “—with-matio=DIR”. I don’t know which DIR I should specify, I’ve tried a few, none of which work.
I am wondering whether the automated detection fails due to absence of libmatio.lib, so the LDFLAGS remains empty?
I have this problem both under MSYS2 and Debian. I am attaching config logs for both environments.
configMSYS2.log (47.1 KB) configDebian.log (53.9 KB)
Could someone suggest which Autotools script to modify and how, in order to link to Matio when building the preprocessor?
Many thanks!