On Sat, 16 Apr 2011, Artur Tarassow wrote:
Thanks for your effort. Unfortunately nothing has changed. I got the
current cvs and tried to compile it with different options, but the same
error occurs...
That's not possible -- not if you were invoking an instance of
gretl newly configured and built from current CVS.
You said the error message was:
/usr/lib/libgretl-1.0.so.0: undefined symbol: omp_get_wtime
The function omp_get_wtime() is called only in
lib/src/gretl_utils.c, and it is compiled conditionally, as in:
<C-snippet>
#if defined(_OPENMP) && defined(USE_OPENMP)
#include <omp.h>
static double tim0;
static void gretl_stopwatch_init (void)
{
tim0 = omp_get_wtime();
}
</C-snippet>
The (new) macro USE_OPENMP is defined (in gretl's config.h) only
if you do --enable-openmp. You can check this in your build
of config.h. You should see
/* Are we using openmp? */
/* #undef USE_OPENMP */
Checks:
1) Is the installed library really current?
ls -l /usr/lib/libgretl-1.0.so.0.0.62
2) Does it invoke omp_get_wtime?
nm /usr/lib/libgretl-1.0.so.0.0.62 | grep omp_get
Allin