[Gmsh] Using gmsh as a library

Christian Klettner christian.klettner at ucl.ac.uk
Tue Feb 10 14:25:44 CET 2009


Dear Sir/Madam,
I am trying to install gmsh as a library so that I can incorporate it into
my own code. I have downloaded, configured it and installed it (I am using
Ubuntu Hardy Heron) as described in driver.cpp which is in
gmsh-2.3.0/utils/misc.

// configure, compile and install Gmsh as a library with
//
//   ./configure --disable-gui
//   make install-lib

I then try to compile driver.cpp with

"g++ driver.cpp -lGmsh -lgsl -lgslcblas"

I receive a whole host of error messagese. I include here a sample of the
error messages:

/usr/local/lib/libGmsh.a(eigensolve.o): In function `eigensolve':
/home/cklettner/Desktop/gmsh-2.3.0/contrib/Chaco/eigen/eigensolve.c:197:
undefined reference to `lanczos_time'
/home/cklettner/Desktop/gmsh-2.3.0/contrib/Chaco/eigen/eigensolve.c:197:
undefined reference to `lanczos_time'
/home/cklettner/Desktop/gmsh-2.3.0/contrib/Chaco/eigen/eigensolve.c:210:
undefined reference to `coarsen'
/home/cklettner/Desktop/gmsh-2.3.0/contrib/Chaco/eigen/eigensolve.c:214:
undefined reference to `rqi_symmlq_time'
/home/cklettner/Desktop/gmsh-2.3.0/contrib/Chaco/eigen/eigensolve.c:214:
undefined reference to `rqi_symmlq_time'

Any advice would be greatly appreciated,
Best regards,
Christian