Dear sir:
I tried to incorporate the MMG5_pMesh and MMG5_pSol in my class as follows:
#ifndef MMGMESH_H
#define MMGMESH_H
#include “Include.h”
#include “mmg/mmg3d/libmmg3d.h”
class MMGMesh
{
public:
MMGMesh (Teuchos::RCP<Epetra_MpiComm>, int , int );
~MMGMesh(){};
protected:
MMG5_pMesh mmgMesh;
MMG5_pSol mmgSol;
Teuchos::RCP<Epetra_MpiComm> Comm;
};
#endif
but when i compile it. it gives me the error about:
/usr/lib64/gcc/x86_64-suse-linux/7/…/…/…/…/x86_64-suse-linux/bin/ld: CMakeFiles/main.dir/Mesh/MMGMesh.cpp.o:(.bss+0x0): multiple definition of `MMG3D_lenedgCoor’; CMakeFiles/main.dir/main.cpp.o:(.bss+0x0): first defined here.
How to resolve this problem.