[Gmsh] 2.2.2: installation: undef. refs: ParseFile, ParseString, ...

Stefan Becuwe stefan.becuwe at ua.ac.be
Thu Jul 3 13:53:58 CEST 2008


I tried to install Gmsh 2.2.2 from source on the following platform:

platform: x86_64
gcc/g++: 4.1.2
GSL: 1.8

Compiling is no problem, but the final linking to get the gmsh executable 
does not work:

$ ./configure --disable-gui
$ make
[...]
g++ -g -O2 -o bin/gmsh -Llib Common/Main.o -lGmshParser -lGmshPlugin 
-lGmshGeo -lGmshMesh -lGmshPost -lGmshCommon -lGmshNumeric -lGmshANN 
-lGmshNetgen -lGmshMathEval -lgsl -lgslcblas -lz -lm
lib/libGmshGeo.a(GModelIO_Geo.o): In function 
`GModel::readGEO(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&)':
/tmp/gmsh-2.2.2/Geo/GModelIO_Geo.cpp:49: undefined reference to 
`ParseFile(char const*, int, int)'
lib/libGmshGeo.a(GModelIO_Geo.o): In function 
`GModel::writeGEO(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&, bool)':
/tmp/gmsh-2.2.2/Geo/GModelIO_Geo.cpp:424: undefined reference to 
`Symbol_T'
lib/libGmshGeo.a(GeoStringInterface.o): In function `add_infile(char 
const*, char const*, bool)':
/tmp/gmsh-2.2.2/Geo/GeoStringInterface.cpp:86: undefined reference to 
`gmsh_yyin'
[...]


Any suggestions?

Thanks!


Stefan Becuwe