Am 09.03.2020 um 11:18 schrieb Schmidt, Joachim:
Dear all,
I am working at a research institute in Germany and I would like to
realize a project by means of gretl.
Hi, sounds very good.
- to call gretl routines by c/c++ function or member calls (instead
of
using interactive scripts),
- writing and reading to/from the according data structures at c/c++ level,
- compiling all that stuff by gcc under linux.
Since we know that gretl itself is a lib written in c or c++ that should
be possible.
Yes, to our knowledge libgretl isn't used like that very often (except
through the gretl program itself of course), but it's definitely a
supported thing.
Have you seen these pages:
http://gretl.sourceforge.net/API/new/gretl/index.html
This says gretl 2017d at the top, so perhaps should be updated, but I
guess most of it still applies. (But it's not complete AFAICS.)
Finally my collegue and me will realize the software on a RaspberryPi
4.
Somebody recently reported having compiled gretl itself successfully on
that thing.
We on our side tried to compile and link our code similar to the
following scheme:
...
-lgretl-1.0 -lm -lxml2 -lfftw3 -lglib-2.0 -lglib
We got an error message: glib.h was not found!
Hm, any reason why you have -lglib in addition to -lglib-2.0 ?
cheers
sven