On Fri, 18 Jun 2010, Joel Bycraft wrote:
Hi, I have done the install for the Gretl 1.9.0 and I'm now
trying to compile and run the sample client program in xcode
3.1.3 IDE, in order to learn how I can use gretl commands and
retirn datasets from OLS and ADF tests. I'm on Mac Osx 10.5.8
Leopard.
I have set header and library search paths at
/usr/local/include/gretl and /usr/local/lib, and my cpp build
does recognize the libgretl.h fine. However I am receiving
errors that all the functions referenced in the sample client
are not found:
i.e. "gretl_model_new()" referenced from _main in main.o.
... Can someone describe the full set of additional linker flags
i should have to properly build the sample client, or other
library locations I should be referencing?
If pkg-config is installed and /usr/local/lib/pkconfig is in
PKG_CONFIG_PATH, then
pkg-config --libs gretl
will give the required linker line. But in your case it should
probably read
-L/usr/local/lib -lgretl-1.0 -lxml2
The essential part is "-lgretl-1.0" which says to link against
libgretl-1.0.
Thanks, this is a great package of tools, I am glad I found it!
Have fun with it!
Allin Cottrell