Undefined symbols while builidng OpenFoam adapter

This sounds a bit mysterious. What is the output of

nm -D /home/hgcastro/precice/lib64/libprecice.so | grep precice15SolverInterface

This will you a longer cryptic output looking similar to this (but more output):

000000000036e830 T _ZN7precice15SolverInterface10initializeEv
000000000036e9f0 T _ZN7precice15SolverInterface11setMeshEdgeEiii
000000000036ea20 T _ZN7precice15SolverInterface11setMeshQuadEiiiii
000000000036ea40 T _ZN7precice15SolverInterface13mapReadDataToEi
000000000036e9a0 T _ZN7precice15SolverInterface13setMeshVertexEiPKd
000000000036e840 T _ZN7precice15SolverInterface14initializeDataEv
000000000036ea00 T _ZN7precice15SolverInterface15setMeshTriangleEiiii
000000000036e9c0 T _ZN7precice15SolverInterface15setMeshVerticesEiiPKdPi
000000000036ea90 T _ZN7precice15SolverInterface15writeScalarDataEiid
000000000036ea70 T _ZN7precice15SolverInterface15writeVectorDataEiiPKd
000000000036ea50 T _ZN7precice15SolverInterface16mapWriteDataFromEi
000000000036e8d0 T _ZN7precice15SolverInterface19markActionFulfilledERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
000000000036ea30 T _ZN7precice15SolverInterface20setMeshQuadWithEdgesEiiiii
000000000036ea80 T _ZN7precice15SolverInterface20writeBlockScalarDataEiiPKiPKd
000000000036ea60 T _ZN7precice15SolverInterface20writeBlockVectorDataEiiPKiPKd
000000000036ea10 T _ZN7precice15SolverInterface24setMeshTriangleWithEdgesEiiii
000000000036e850 T _ZN7precice15SolverInterface7advanceEd
000000000036e860 T _ZN7precice15SolverInterface8finalizeEv

It would be interesting to see whether the missing symbol _ZN7precice15SolverInterfaceC1ERKSsS2_ii (as mentionde in the ldd.log) is indeed missing.

Currently, my best guess would be that the compilers are still somehow mixed up as in this older forum post.

1 Like