Personal tools
You are here: Home Forum Install & build making of a C++ code with MEDMEM library

making of a C++ code with MEDMEM library

Up to Install & build
  • making of a C++ code with MEDMEM library

    Posted by Bonaccorsi at November 07. 2006
    Hello,

    I want to make an example provided in SALOME. It is MEDMEMgeneral.cxx in ${INSTALL_ROOT_DIR}/MED_SRC_X.X.X/doc/MEDMEM

    my Makefile is follow :

    HDFHOME        =    /home/tbonacco/SALOME/SALOME_2_2_8/SALOME_BUILD/hdf5-1.4.4
    HDFINCLUDE     =    ${HDFHOME}/include
    HDFLIB        =     ${HDFHOME}/lib

    MEDHOME        =     /home/tbonacco/SALOME/SALOME_2_2_8/SALOME_BUILD/med-2.2.2
    MEDINCLUDE    =    ${MEDHOME}/include
    MEDLIB        =     ${MEDHOME}/lib

    MEDMEMHOME    =     /home/tbonacco/SALOME/SALOME_2_2_8/SALOME_BUILD/MED_2.2.8
    MEDMEMINCLUDE    =    ${MEDMEMHOME}/include/salome
    MEDMEMLIB    =    ${MEDMEMHOME}/lib/salome

    SALOMEHOME    =    /home/tbonacco/SALOME/SALOME_2_2_8/SALOME_BUILD/KERNEL_2.2.8
    SALOMEINCLUDE    =    ${SALOMEHOME}/include/salome
    SALOMELIB    =    ${SALOMEHOME}/lib/salome

    OPT        =    -Wno-deprecated

    CC         =    gcc
    CPP        =    g++ ${OPT}
    CFLAGS        =    -DPCLINUX -I${HDFINCLUDE} -I${MEDINCLUDE} -I${MEDMEMINCLUDE} -I${SALOMEINCLUDE} -I./
    LFLAGS        =     -L${MEDMEMLIB} -L${MEDLIB} -L${HDFLIB} -L${SALOMELIB} -lmed -lhdf5 -lz -lm -lOpUtil #-lSalomeContainer


    all : MESHgeneral.cxx
        ${CPP} MESHgeneral.cxx ${CFLAGS} ${LFLAGS} -o MESHgeneral.out
    clean :
        rm *.out *.o


    when i make this i have those errors :

    /tmp/ccdV4vfx.o : Dans la fonction "main":MESHgeneral.cxx:(.text+0xcd): référence indéfinie vers « MEDMEM::MESH::MESH(MEDMEM::driverTypes, std::basic_string, std::allocator > const&, std::basic_string, std::allocator > const&;)»
    :MESHgeneral.cxx:(.text+0x2dd): référence indéfinie vers « MEDMEM::MESH::~MESH()»
    :MESHgeneral.cxx:(.text+0x2f9): référence indéfinie vers « MEDMEM::MESH::~MESH()»
    collect2: ld a retourné 1 code d'état d'exécution
    make: *** [all] Erreur 1


    Is there anyone know what is wrong ? in fact i would like to try MEDMEM_Interpolation tools for interpolate triangle/triangle.

    Thanks,

    Thomas.
Powered by Ploneboard
Document Actions