[Gmsh] undefined reference to `FieldManager::get(int)'

Nico Schlömer nico.schloemer at gmail.com
Wed Oct 9 06:36:35 CEST 2013


Hi all,

with a plain install of Gmsh 2.8.3, I'm getting the link error

================ *snip* ================
Linking CXX executable gmsh
CMakeFiles/gmsh.dir/Geo/boundaryLayersData.cpp.o: In function
`getBLField(GModel*)':
/home/nschloe/software/gmsh/2.8.3/gmsh-2.8.3-source/Geo/boundaryLayersData.cpp:439:
undefined reference to `FieldManager::get(int)'
/home/nschloe/software/gmsh/2.8.3/gmsh-2.8.3-source/Geo/boundaryLayersData.cpp:440:
undefined reference to `typeinfo for Field'
CMakeFiles/gmsh.dir/Geo/boundaryLayersData.cpp.o:(.rodata._ZTI18BoundaryLayerField[_ZTI18BoundaryLayerField]+0x10):
undefined reference to `typeinfo for Field'
collect2: error: ld returned 1 exit status
================ *snap* ================

The same is true on the latest dev master.
Any known workarounds?

--Nico